source: git/lib/Makefile.am @ 4183e91

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

lib/Makefile.am: Check format of .po files with msgfmt -c
--check-accelerators.

git-svn-id: file:///home/survex-svn/survex/trunk@3750 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 1.3 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)/codes.po|sort|uniq -c|grep -v '^ *1 '; then\
8            echo 'Duplicate message code(s) in codes.po'; exit 1;\
9        fi
10        for po in $(po_files) ; do msgfmt -c --check-accelerators "$$po" || exit 1; done
11
12SUBDIRS = icons
13
14po_files = ca.po de.po de_CH.po de_DE.po en_US.po\
15 es.po fr.po it.po pt.po pt_BR.po sk.po ro.po
16
17msg_files = $(po_files:.po=.msg) en.msg
18
19EXTRA_DIST = survex.pot $(po_files) codes.po\
20 named-entities.txt po-to-msg.pl checkshortcut.pl\
21 English_GB.isl Romanian-7-5.1.11.isl\
22 afm2txf.pl\
23 INSTALL.OSX
24
25MAINTAINERCLEANFILES = $(msg_files) *.todo aven.txf
26
27dist_pkgdata_DATA = print.ini bcra3.svx bcra5.svx $(msg_files) aven.txf
28
29appsdir = $(datadir)/applications
30dist_apps_DATA = survex-aven.desktop survex-svxedit.desktop
31
32$(msg_files): survex.pot $(po_files) po-to-msg.pl
33        LANG=C perl $(srcdir)/po-to-msg.pl $(po_files)
34
35survex.pot: codes.po
36        perl -pe 's/^msgstr ".*/msgstr ""/' codes.po > survex.pot~
37        mv survex.pot~ survex.pot
38
39mimedir = $(datadir)/mime-info
40dist_mime_DATA = survex.mime
41mime_DATA = survex.keys
42
43aven.txf:
44        $(srcdir)/afm2txf.pl -o aven.txf /usr/share/texmf-texlive/fonts/afm/urw/helvetic/uhvr8a.afm
Note: See TracBrowser for help on using the repository browser.