source: git/lib/Makefile.am @ 5d4e21e

debian/1.4.1-1
Last change on this file since 5d4e21e was c02fcb1, checked in by Olly Betts <olly@…>, 5 weeks ago

The epsg and esri code lists aren't needed now

Not since moving to the new PROJ API.

  • Property mode set to 100644
File size: 2.3 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 images
18
19po_files = bg.po ca.po de.po de_CH.po el.po en_US.po es.po fr.po\
20 hu.po id.po it.po pl.po pt.po pt_BR.po ro.po ru.po sk.po zh_CN.po
21
22msg_files = $(po_files:.po=.msg) en.msg
23
24EXTRA_DIST = survex.pot $(po_files)\
25 po-to-msg.pl checkshortcut.pl extract-msgs.pl\
26 Bulgarian.isl\
27 ChineseSimplified.isl ChineseTraditional.isl\
28 EnglishBritish.isl Indonesian.isl Romanian.isl Slovak.isl\
29 make-pixel-font preload_font.h
30
31MAINTAINERCLEANFILES = $(msg_files) unifont.pixelfont preload_font.h
32
33dist_pkgdata_DATA = bcra3.svx bcra5.svx $(msg_files) unifont.pixelfont
34
35appsdir = $(datadir)/applications
36dist_apps_DATA = survex-aven.desktop
37
38gtksourceview3dir = $(datadir)/gtksourceview-3.0/language-specs
39dist_gtksourceview3_DATA = survex.lang
40
41gtksourceview4dir = $(datadir)/gtksourceview-4/language-specs
42dist_gtksourceview4_DATA = survex.lang
43
44$(msg_files): survex.pot $(po_files) po-to-msg.pl
45        LANG=C perl $(srcdir)/po-to-msg.pl $(po_files)
46
47packagesdir = $(datadir)/mime/packages
48dist_packages_DATA = survex.xml
49
50unifont.pixelfont preload_font.h: $(srcdir)/make-pixel-font
51        $(srcdir)/make-pixel-font
52
53merge-pos:
54        cd '$(srcdir)' && ./merge-po $(po_files)
55
56generate-todo:
57        cd '$(srcdir)' && ./generate-po-todo $(po_files)
58
59launchpad-diff:
60        rm -rf lib
61        mkdir lib
62        cd lib && tar --strip-components=1 -xf ../launchpad-export.tar.gz
63        for po in $(po_files) ; do \
64            lpo="lib/survex-$$po" ;\
65            [ -r "$$lpo" ] || continue ;\
66            perl ./unlaunchpad-po "$$lpo" | ./launchpad-merge-po "$$po" - > "lib/$$po" ;\
67            if ! diff -q "$$po" "lib/$$po" ; then \
68                echo "Edit changes for $$po ? (Y/n/q)" ;\
69                read ;\
70                case $$REPLY in \
71                q*) exit 0 ;;\
72                n*) ;;\
73                *) vimdiff "$$po" "lib/$$po" ;;\
74                esac ;\
75            fi ;\
76        done
77
78.PHONY: merge-pos
Note: See TracBrowser for help on using the repository browser.