source: git/lib/Makefile.am @ d8dbdff

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

lib/Makefile.am: Check there are no duplicate message codes in
codes.po as part of "make check".

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

  • Property mode set to 100644
File size: 1.2 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3# Makefile for survex support files
4
5check-local:
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
11SUBDIRS = icons
12
13po_files = ca.po de.po de_CH.po de_DE.po en_US.po\
14 es.po fr.po it.po pt.po pt_BR.po sk.po ro.po
15
16msg_files = $(po_files:.po=.msg) en.msg
17
18EXTRA_DIST = survex.pot $(po_files) codes.po\
19 named-entities.txt po-to-msg.pl checkshortcut.pl\
20 English_GB.isl Romanian-7-5.1.11.isl\
21 afm2txf.pl\
22 INSTALL.OSX
23
24MAINTAINERCLEANFILES = $(msg_files) *.todo aven.txf
25
26dist_pkgdata_DATA = print.ini bcra3.svx bcra5.svx $(msg_files) aven.txf
27
28appsdir = $(datadir)/applications
29dist_apps_DATA = survex-aven.desktop survex-svxedit.desktop
30
31$(msg_files): survex.pot $(po_files) po-to-msg.pl
32        LANG=C perl $(srcdir)/po-to-msg.pl $(po_files)
33
34survex.pot: codes.po
35        perl -pe 's/^msgstr ".*/msgstr ""/' codes.po > survex.pot~
36        mv survex.pot~ survex.pot
37
38mimedir = $(datadir)/mime-info
39dist_mime_DATA = survex.mime
40mime_DATA = survex.keys
41
42aven.txf:
43        $(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.