source: git/lib/Makefile.am @ 1650ba1

Last change on this file since 1650ba1 was 7b26c92, checked in by Olly Betts <olly@…>, 4 weeks ago

Add the start of a Czech translation

  • Property mode set to 100644
File size: 2.5 KB
RevLine 
[adaa778]1## Process this file with automake to produce Makefile.in
2
3# Makefile for survex support files
4
[4183e91]5check-local: survex.pot
[be891ea]6        srcdir=$(srcdir) LANG=C perl $(srcdir)/checkshortcut.pl $(msg_files)
[0dc5829]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;\
[1b1aaf4]9        fi
[49e89e9]10        for po in $(po_files) ; do\
[f15ee00]11            $(MSGFMT) -c --check-accelerators -o /dev/null "$(srcdir)/$$po" || exit 1;\
[49e89e9]12        done
[d9b5fc64]13        if cd "$(srcdir)" && grep 'msgstr "[0-9][0-9]*"' $(po_files); then\
[eeb7320]14            echo '.po file with numeric code'; exit 1;\
15        fi
[6deca30]16
[09dfd18]17SUBDIRS = icons images
[b82777e9]18
[7b26c92]19po_files = bg.po ca.po cs.po de.po de_CH.po el.po en_US.po es.po fr.po\
[42607d0]20 hu.po id.po it.po pl.po pt.po pt_BR.po ro.po ru.po sk.po zh_CN.po
[d86459c]21
[c584ed2]22msg_files = $(po_files:.po=.msg) en.msg
[8ac4406]23
[0dc5829]24EXTRA_DIST = survex.pot $(po_files)\
[b82f52d]25 po-to-msg.pl checkshortcut.pl extract-msgs.pl\
[9990aab]26 ChineseSimplified.isl\
27 ChineseTraditional.isl\
28 EnglishBritish.isl\
29 Greek.isl\
30 Indonesian.isl\
31 Romanian.isl\
[b69af0f]32 make-pixel-font preload_font.h
[adaa778]33
[6340494]34MAINTAINERCLEANFILES = $(msg_files) unifont.pixelfont preload_font.h
[6cfa0b5]35
[a72ed95]36dist_pkgdata_DATA = bcra3.svx bcra5.svx $(msg_files) unifont.pixelfont
[e72b854]37
38appsdir = $(datadir)/applications
[2868e97]39dist_apps_DATA = survex-aven.desktop
[adaa778]40
[cadd01c]41gtksourceview3dir = $(datadir)/gtksourceview-3.0/language-specs
42dist_gtksourceview3_DATA = survex.lang
43
44gtksourceview4dir = $(datadir)/gtksourceview-4/language-specs
45dist_gtksourceview4_DATA = survex.lang
[541c533]46
[c584ed2]47$(msg_files): survex.pot $(po_files) po-to-msg.pl
48        LANG=C perl $(srcdir)/po-to-msg.pl $(po_files)
[d86459c]49
[df10c51]50packagesdir = $(datadir)/mime/packages
51dist_packages_DATA = survex.xml
[bd551c0]52
[614d60b]53unifont.pixelfont preload_font.h: $(srcdir)/make-pixel-font
[1aa3fb7]54        $(srcdir)/make-pixel-font
[df126137]55
56merge-pos:
57        cd '$(srcdir)' && ./merge-po $(po_files)
58
[fa56920]59generate-todo:
60        cd '$(srcdir)' && ./generate-po-todo $(po_files)
61
[faa23c9]62launchpad-upload.tar.bz2: survex.pot $(po_files)
[c87c33f]63        cd '$(srcdir)' && tar --transform='s!^!survex/!' -jcf $@ $^
[faa23c9]64        @echo 'Upload $@ to'
65        @echo 'https://translations.launchpad.net/survex/trunk/+translations-upload'
66
[6176b37]67launchpad-diff:
68        rm -rf lib
[cff98d4]69        mkdir lib
[a932bebf]70        cd lib && tar --strip-components=1 -xf ../launchpad-export.tar.gz
[6176b37]71        for po in $(po_files) ; do \
72            lpo="lib/survex-$$po" ;\
[bb51ecd]73            [ -r "$$lpo" ] || continue ;\
[f2826cd]74            perl ./unlaunchpad-po "$$lpo" | ./launchpad-merge-po "$$po" - > "lib/$$po" ;\
[bb51ecd]75            if ! diff -q "$$po" "lib/$$po" ; then \
[6176b37]76                echo "Edit changes for $$po ? (Y/n/q)" ;\
77                read ;\
78                case $$REPLY in \
79                q*) exit 0 ;;\
80                n*) ;;\
[bb51ecd]81                *) vimdiff "$$po" "lib/$$po" ;;\
[6176b37]82                esac ;\
83            fi ;\
84        done
85
[df126137]86.PHONY: merge-pos
Note: See TracBrowser for help on using the repository browser.