source: git/lib/Makefile.am @ d73ef23

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since d73ef23 was d73ef23, checked in by Olly Betts <olly@…>, 12 years ago

lib/,src/Makefile.am,src/gettexttomsg.pl: Rename codes.po to po_codes
so it doesn't get picked up by tools looking for .po files. Add
survex.pot to the repo so launchpad's auto translation syncing can
work.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3# Makefile for survex support files
4
5check-local: survex.pot
6        srcdir=$(srcdir) LANG=C perl $(srcdir)/checkshortcut.pl $(msg_files)
7        if grep ^msgstr $(srcdir)/po_codes|sort|uniq -c|grep -v '^ *1 '; then\
8            echo 'Duplicate message code(s) in po_codes'; exit 1;\
9        fi
10        for po in $(po_files) ; do\
11            msgfmt -c --check-accelerators -o /dev/null "$(srcdir)/$$po" || exit 1;\
12        done
13        if cd "$(srcdir)" && grep 'msgstr "[0-9][0-9]*"' $(po_files); then\
14            echo '.po file with numeric code'; exit 1;\
15        fi
16
17SUBDIRS = icons
18
19po_files = ca.po de.po de_CH.po de_DE.po en_US.po\
20 es.po fr.po it.po pt.po pt_BR.po sk.po ro.po
21
22msg_files = $(po_files:.po=.msg) en.msg
23
24EXTRA_DIST = survex.pot $(po_files) po_codes\
25 named-entities.txt po-to-msg.pl checkshortcut.pl extract-msgs.pl\
26 English_GB.isl Romanian-7-5.1.11.isl\
27 make-pixel-font\
28 INSTALL.OSX
29
30MAINTAINERCLEANFILES = $(msg_files) *.todo unifont.pixelfont
31
32dist_pkgdata_DATA = print.ini bcra3.svx bcra5.svx $(msg_files) unifont.pixelfont
33
34appsdir = $(datadir)/applications
35dist_apps_DATA = survex-aven.desktop survex-svxedit.desktop
36
37$(msg_files): survex.pot $(po_files) po-to-msg.pl
38        LANG=C perl $(srcdir)/po-to-msg.pl $(po_files)
39
40survex.pot: po_codes
41        perl -pe 's/^msgstr ".*/msgstr ""/' po_codes > survex.pot~
42        mv survex.pot~ survex.pot
43
44mimedir = $(datadir)/mime-info
45dist_mime_DATA = survex.mime
46mime_DATA = survex.keys
47
48unifont.pixelfont: $(srcdir)/make-pixel-font
49        $(srcdir)/make-pixel-font
50
51launchpad-tarball: check-local
52        tar --transform 's!^!survex-trans/!' -zcf survex-trans.tar.gz survex.pot \
53            `for f in $(po_files); do test -h "$$f" || echo "$$f" ; done`
54        echo "$(PWD)/survex-trans.tar.gz"
55
56.PHONY: launchpad-tarball
Note: See TracBrowser for help on using the repository browser.