source: git/lib/Makefile.am @ 08e858b

line_contentsproj-api-updatestereo
Last change on this file since 08e858b was 8770ec6, checked in by Olly Betts <olly@…>, 9 years ago

lib/Makefile.am,lib/bg.po,src/message.c: Add start of bulgarian
translation, with messages take from therion.

  • Property mode set to 100644
File size: 2.0 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 '^#: n:' $(srcdir)/survex.pot|sort|uniq -c|grep -v '^ *1 '; then\
8            echo 'Duplicate message code(s) in survex.pot'; exit 1;\
9        fi
10        for po in $(po_files) ; do\
11            msgfmt -c --check-accelerators -o /dev/null "$(srcdir)/$$po" || exit 1;\
12        done
13        if cd "$(srcdir)" && grep 'msgstr "[0-9][0-9]*"' $(po_files); then\
14            echo '.po file with numeric code'; exit 1;\
15        fi
16
17SUBDIRS = icons
18
19po_files = bg.po ca.po de.po de_CH.po de_DE.po en_US.po\
20 es.po fr.po id.po it.po pt.po pt_BR.po sk.po ro.po zh_CN.po
21
22de_DE.po:
23        ln -s de.po de_DE.po
24
25msg_files = $(po_files:.po=.msg) en.msg
26
27EXTRA_DIST = survex.pot $(po_files)\
28 po-to-msg.pl checkshortcut.pl extract-msgs.pl\
29 ChineseSimplified.isl ChineseTraditional.isl\
30 EnglishGB.isl Indonesian.isl Romanian.isl Slovak.isl\
31 make-pixel-font\
32 INSTALL.OSX
33
34MAINTAINERCLEANFILES = $(msg_files) de_DE.po unifont.pixelfont
35
36dist_pkgdata_DATA = print.ini bcra3.svx bcra5.svx $(msg_files) unifont.pixelfont
37
38appsdir = $(datadir)/applications
39dist_apps_DATA = survex-aven.desktop survex-svxedit.desktop
40
41$(msg_files): survex.pot $(po_files) po-to-msg.pl
42        LANG=C perl $(srcdir)/po-to-msg.pl $(po_files)
43
44mimedir = $(datadir)/mime-info
45dist_mime_DATA = survex.mime
46mime_DATA = survex.keys
47
48unifont.pixelfont: $(srcdir)/make-pixel-font
49        $(srcdir)/make-pixel-font
50
51merge-pos:
52        cd '$(srcdir)' && ./merge-po $(po_files)
53
54launchpad-diff:
55        rm -rf lib
56        tar xf launchpad-export.tar.gz
57        for po in $(po_files) ; do \
58            lpo="lib/survex-$$po" ;\
59            [ -r "$$lpo" ] || continue ;\
60            perl -i ./unlaunchpad-po "$$lpo" ;\
61            ./launchpad-merge-po "$$po" > "lib/$$po" ;\
62            if ! diff -q "$$po" "lib/$$po" ; then \
63                echo "Edit changes for $$po ? (Y/n/q)" ;\
64                read ;\
65                case $$REPLY in \
66                q*) exit 0 ;;\
67                n*) ;;\
68                *) vimdiff "$$po" "lib/$$po" ;;\
69                esac ;\
70            fi ;\
71        done
72
73.PHONY: merge-pos
Note: See TracBrowser for help on using the repository browser.