source: git/lib/Makefile.am @ 7c0e6e3

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

lib/,src/mainfrm.cc,src/mainfrm.h: We now use .po and .pot files as
the master format for storing translations in (rather than
messages.txt), and then translate these into Survex's .msg format.

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

  • Property mode set to 100644
File size: 1.6 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
8SUBDIRS = icons
9
10po_files = ca.po de.po de_CH.po de_DE.po en_US.po\
11 es.po fr.po it.po pt.po pt_BR.po sk.po ro.po
12
13msg_files = ca.msg de.msg de_CH.msg de_DE.msg en.msg en_US.msg\
14 es.msg fr.msg it.msg pt.msg pt_BR.msg sk.msg ro.msg
15
16hdr_files = ca.h de.h de_CH.h de_DE.h en.h en_US.h\
17 es.h fr.h it.h pt.h pt_BR.h sk.h ro.h
18
19EXTRA_DIST = survex.pot $(po_files)\
20 named-entities.txt po-to-msg.pl checkshortcut.pl\
21 $(hdr_files) survex.keys.in\
22 English_GB.isl Romanian-7-5.1.11.isl\
23 afm2txf.pl\
24 INSTALL.OSX
25
26MAINTAINERCLEANFILES = $(msg_files) $(hdr_files) *.todo aven.txf
27
28dist_pkgdata_DATA = print.ini bcra3.svx bcra5.svx $(msg_files) aven.txf
29
30appsdir = $(datadir)/applications
31dist_apps_DATA = survex-aven.desktop survex-svxedit.desktop
32
33BUILT_SOURCES = defaultlang.h
34
35# BUILT_SOURCES are automatically removed by maintainer-clean, but we want it
36# removed by distclean
37DISTCLEANFILES = defaultlang.h
38
39$(msg_files) $(hdr_files): survex.pot $(po_files) po-to-msg.pl
40        srcdir=$(srcdir) LANG=C perl $(srcdir)/po-to-msg.pl $(po_files)
41
42survex.pot: codes.po
43        perl -pe 's/^msgstr ".*/msgstr ""/' codes.po > survex.pot~
44        mv survex.pot~ survex.pot
45
46defaultlang.h:
47        -rm -f defaultlang.h
48        ln -s $(srcdir)/$(DEFAULTLANG).h defaultlang.h
49
50mimedir = $(datadir)/mime-info
51dist_mime_DATA = survex.mime
52mime_DATA = survex.keys
53
54aven.txf:
55        $(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.