source: git/lib/Makefile.am @ d9b5fc64

add-show-splaysline_contentsproj-api-updatestereosvn/github/mastersvn/origin/mastersvn/tags/1.2.1svn/tags/1.2.2svn/tags/1.2.3svn/tags/1.2.4svn/tags/1.2.5svn/trunk
Last change on this file since d9b5fc64 was d9b5fc64, checked in by Olly Betts <olly@…>, 11 years ago

lib/Makefile.am: Fix new translation checking rules to work in a
VPATH build.

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

  • Property mode set to 100644
File size: 1.5 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 "$(srcdir)/$$po" || exit 1; done
11        if cd "$(srcdir)" && grep 'msgstr "[0-9][0-9]*"' $(po_files); then\
12            echo '.po file with numeric code'; exit 1;\
13        fi
14
15SUBDIRS = icons
16
17po_files = ca.po de.po de_CH.po de_DE.po en_US.po\
18 es.po fr.po it.po pt.po pt_BR.po sk.po ro.po
19
20msg_files = $(po_files:.po=.msg) en.msg
21
22EXTRA_DIST = survex.pot $(po_files) codes.po\
23 named-entities.txt po-to-msg.pl checkshortcut.pl\
24 English_GB.isl Romanian-7-5.1.11.isl\
25 afm2txf.pl\
26 INSTALL.OSX
27
28MAINTAINERCLEANFILES = $(msg_files) *.todo aven.txf
29
30dist_pkgdata_DATA = print.ini bcra3.svx bcra5.svx $(msg_files) aven.txf
31
32appsdir = $(datadir)/applications
33dist_apps_DATA = survex-aven.desktop survex-svxedit.desktop
34
35$(msg_files): survex.pot $(po_files) po-to-msg.pl
36        LANG=C perl $(srcdir)/po-to-msg.pl $(po_files)
37
38survex.pot: codes.po
39        perl -pe 's/^msgstr ".*/msgstr ""/' codes.po > survex.pot~
40        mv survex.pot~ survex.pot
41
42mimedir = $(datadir)/mime-info
43dist_mime_DATA = survex.mime
44mime_DATA = survex.keys
45
46aven.txf: $(srcdir)/afm2txf.pl
47        $(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.