root/trunk/Makefile.am

Revision 551, 2.1 kB (checked in by uncle_fungus, 2 years ago)

Migrated projects database to xml

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