source: git/lib/Makefile.am@ 36efb03

RELEASE/1.2 debug-ci debug-ci-sanitisers faster-cavernlog log-select main stereo stereo-2025 walls-data walls-data-hanging-as-warning warn-only-for-hanging-survey
Last change on this file since 36efb03 was a72ed95, checked in by Olly Betts <olly@…>, 11 years ago
  • .gitignore,Makefile.am,debian/survex.install,doc/,lib/,src/: Aven's

support for reading colours and font sizes for printouts from
print.ini has never worked - the contents of the ini files are
ignored due to a bug which has been there since the code was added
in 2005 - but nobody has ever complained. So just strip out that
code entirely - we should support setting the colours and font sizes,
but a GUI interface for setting them would be better.

  • Property mode set to 100644
File size: 2.1 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 EnglishGB.isl Indonesian.isl Romanian.isl Slovak.isl\
29 make-pixel-font preload_font.h\
30 INSTALL.OSX
31
32MAINTAINERCLEANFILES = $(msg_files) unifont.pixelfont preload_font.h
33
34dist_pkgdata_DATA = bcra3.svx bcra5.svx $(msg_files) unifont.pixelfont
35
36appsdir = $(datadir)/applications
37dist_apps_DATA = survex-aven.desktop survex-svxedit.desktop
38
39$(msg_files): survex.pot $(po_files) po-to-msg.pl
40 LANG=C perl $(srcdir)/po-to-msg.pl $(po_files)
41
42mimedir = $(datadir)/mime-info
43dist_mime_DATA = survex.mime
44mime_DATA = survex.keys
45
46unifont.pixelfont preload_font.h: $(srcdir)/make-pixel-font
47 $(srcdir)/make-pixel-font
48
49merge-pos:
50 cd '$(srcdir)' && ./merge-po $(po_files)
51
52generate-todo:
53 cd '$(srcdir)' && ./generate-po-todo $(po_files)
54
55launchpad-diff:
56 rm -rf lib
57 tar xf launchpad-export.tar.gz
58 for po in $(po_files) ; do \
59 lpo="lib/survex-$$po" ;\
60 [ -r "$$lpo" ] || continue ;\
61 perl -i ./unlaunchpad-po "$$lpo" ;\
62 ./launchpad-merge-po "$$po" > "lib/$$po" ;\
63 if ! diff -q "$$po" "lib/$$po" ; then \
64 echo "Edit changes for $$po ? (Y/n/q)" ;\
65 read ;\
66 case $$REPLY in \
67 q*) exit 0 ;;\
68 n*) ;;\
69 *) vimdiff "$$po" "lib/$$po" ;;\
70 esac ;\
71 fi ;\
72 done
73
74.PHONY: merge-pos
Note: See TracBrowser for help on using the repository browser.