-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
70 lines (60 loc) · 2.07 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright (C) 2007-9 Andrew Schofield <[email protected]>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
EXTRA_DIST = config.rpath \
reconf \
configure \
fahmon.desktop \
m4/Makefile.in \
src/gettext.h \
REQUIRES \
fahmon.sln \
fahmon.vcxproj \
wxcurl.vcxproj \
FahMon.nsi \
README.win32.txt \
po_to_lang.bat \
doxconf \
TEMPLATE_SYNTAX \
gen_msw.bat \
fahmon.spec \
FahMon-Info.plist \
mac-lang \
libtool \
ltmain.sh
SUBDIRS = m4 wxcurl src doc doc/help po src/include src/images resources templates FahMon.xcodeproj mac
appsdir = $(datadir)/applications
apps_in_files = fahmon.desktop
apps_DATA = $(apps_in_files)
ACLOCAL_AMFLAGS = -I m4
check-gettext:
@if test x$(USE_NLS) != "xyes" ; then echo "Missing gettext. Rerun configure and check for" \
"'checking whether to use NLS... yes'!" ; exit 1 ; fi
update-po: check-gettext
@find $(srcdir)/src/ -name "*.cpp" -print | sort > $(srcdir)/po/POTFILES.in.2 ; \
if diff $(srcdir)/po/POTFILES.in $(srcdir)/po/POTFILES.in.2 >/dev/null 2>&1 ; then \
rm -f $(srcdir)/po/POTFILES.in.2 ; \
else \
mv $(srcdir)/po/POTFILES.in.2 $(srcdir)/po/POTFILES.in ; \
fi
cd po && $(MAKE) $(AM_MAKEFLAGS) update-po
update-gmo: check-gettext
cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
force-update-gmo: check-gettext
touch po/*.po
cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
force-update-gmo-%: check-gettext
@language=`echo $@ | sed s/force-update-gmo-//` ; \
if test ! -f po/$$language.po ; then echo "file po/$$language.po does not exist" ; exit 1 ; fi ; \
touch po/$$language.po ; \
cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
doc:
doxygen doxconf
cd $(srcdir)/doc/latex/ && $(MAKE) $(AM_MAKEFLAGS)
.PHONY: check-gettext update-po update-gmo force-update-gmo doc