source: git/lib/Makefile.am @ d8dbdff

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
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
RevLine 
[adaa778]1## Process this file with automake to produce Makefile.in
2
3# Makefile for survex support files
4
[eb92dcc]5check-local:
[be891ea]6        srcdir=$(srcdir) LANG=C perl $(srcdir)/checkshortcut.pl $(msg_files)
[1b1aaf4]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
[6deca30]10
[b82777e9]11SUBDIRS = icons
12
[d86459c]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
[c584ed2]16msg_files = $(po_files:.po=.msg) en.msg
[8ac4406]17
[a26bab0]18EXTRA_DIST = survex.pot $(po_files) codes.po\
[d86459c]19 named-entities.txt po-to-msg.pl checkshortcut.pl\
[b4dbba1]20 English_GB.isl Romanian-7-5.1.11.isl\
[d133b65]21 afm2txf.pl\
[64d37a3]22 INSTALL.OSX
[adaa778]23
[c584ed2]24MAINTAINERCLEANFILES = $(msg_files) *.todo aven.txf
[6cfa0b5]25
[e72b854]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
[adaa778]30
[c584ed2]31$(msg_files): survex.pot $(po_files) po-to-msg.pl
32        LANG=C perl $(srcdir)/po-to-msg.pl $(po_files)
[d86459c]33
34survex.pot: codes.po
35        perl -pe 's/^msgstr ".*/msgstr ""/' codes.po > survex.pot~
36        mv survex.pot~ survex.pot
[adaa778]37
[27b8b59]38mimedir = $(datadir)/mime-info
[e72b854]39dist_mime_DATA = survex.mime
40mime_DATA = survex.keys
[bd551c0]41
42aven.txf:
[d133b65]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.