source: git/lib/Makefile.am @ b69af0f

RELEASE/1.2debug-cidebug-ci-sanitiserswalls-data
Last change on this file since b69af0f was b69af0f, checked in by Olly Betts <olly@…>, 5 years ago

Eliminate INSTALL.OSX

This used to be copied into the disk image that we used to distribute
the macOS version of Survex, but is unused now we've switched to using
HomeBrew?.

Relocate the useful information from it into the manual.

  • Property mode set to 100644
File size: 2.2 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\
11            msgfmt -c --check-accelerators -o /dev/null "$(srcdir)/$$po" || exit 1;\
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
[6340494]19po_files = bg.po ca.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\
[cee1249]26 Bulgarian.isl\
[adceff5]27 ChineseSimplified.isl ChineseTraditional.isl\
[352ad2a]28 EnglishBritish.isl Indonesian.isl Romanian.isl Slovak.isl\
[b69af0f]29 make-pixel-font preload_font.h
[adaa778]30
[6340494]31MAINTAINERCLEANFILES = $(msg_files) unifont.pixelfont preload_font.h
[6cfa0b5]32
[a72ed95]33dist_pkgdata_DATA = bcra3.svx bcra5.svx $(msg_files) unifont.pixelfont
[e72b854]34
35appsdir = $(datadir)/applications
[2868e97]36dist_apps_DATA = survex-aven.desktop
[adaa778]37
[541c533]38gtksourceviewdir = $(datadir)/gtksourceview-3.0/language-specs
39dist_gtksourceview_DATA = survex.lang
40
[fa0f804]41projdatadir = $(pkgdatadir)/proj
[3f1dd91f]42dist_projdata_DATA = proj/esri
43
[c584ed2]44$(msg_files): survex.pot $(po_files) po-to-msg.pl
45        LANG=C perl $(srcdir)/po-to-msg.pl $(po_files)
[d86459c]46
[df10c51]47packagesdir = $(datadir)/mime/packages
48dist_packages_DATA = survex.xml
[bd551c0]49
[614d60b]50unifont.pixelfont preload_font.h: $(srcdir)/make-pixel-font
[1aa3fb7]51        $(srcdir)/make-pixel-font
[df126137]52
53merge-pos:
54        cd '$(srcdir)' && ./merge-po $(po_files)
55
[fa56920]56generate-todo:
57        cd '$(srcdir)' && ./generate-po-todo $(po_files)
58
[6176b37]59launchpad-diff:
60        rm -rf lib
61        tar xf launchpad-export.tar.gz
62        for po in $(po_files) ; do \
63            lpo="lib/survex-$$po" ;\
[bb51ecd]64            [ -r "$$lpo" ] || continue ;\
[f2826cd]65            perl ./unlaunchpad-po "$$lpo" | ./launchpad-merge-po "$$po" - > "lib/$$po" ;\
[bb51ecd]66            if ! diff -q "$$po" "lib/$$po" ; then \
[6176b37]67                echo "Edit changes for $$po ? (Y/n/q)" ;\
68                read ;\
69                case $$REPLY in \
70                q*) exit 0 ;;\
71                n*) ;;\
[bb51ecd]72                *) vimdiff "$$po" "lib/$$po" ;;\
[6176b37]73                esac ;\
74            fi ;\
75        done
76
[df126137]77.PHONY: merge-pos
Note: See TracBrowser for help on using the repository browser.