source: git/Makefile.am @ 5a0eabd

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

Makefile.am,xvfb-run: We no longer need an X display to run ISCC
under Wine, so just run wine directly and removed version of
Debian's xvfb-run script.
make_release.in: Pass variables to configure on the command line
rather than in the enviornment. Running "make distcheck" no longer
fails extend.tst, so remove comment about that. Use case rather
than expr to check what we've been asked to build. Update to use
unicode wx-config script for wxmsw. The wxmsw build spews warnings
about aliasing issues, so turn on -fno-strict-aliasing to avoid any
potential bugs from that. Enable -Werror for the wxmsw build.
Makefile.am: Update list of wxstd.mo files we package for wxmsw
(add pt and sk) and where we copy them from. Copy the unofficial
InnoSetup? i18n files (.isl) from lib.

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3388 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 3.4 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3# We aim to be GNU compliant, but some required files are generated
4AUTOMAKE_OPTIONS = 1.5 foreign
5
6# These files are installed automatically in --gnu mode
7GNU_FILES = INSTALL NEWS README COPYING AUTHORS ChangeLog
8
9SUBDIRS = . lib src doc tests
10
11# We never want to implicitly recurse into the vim subdirectory, but we still
12# want to distribute the files there.
13DIST_SUBDIRS = $(SUBDIRS) vim
14
15EXTRA_DIST = $(GNU_FILES) TODO survex.iss.in OLDNEWS\
16 desc.txt desc-aven.txt survex.spec.in survex.spec\
17 buildmacosx.sh
18
19extra_bin = lib/*.msg\
20 lib/aven.txf
21extra_txt = lib/*.svx lib/print.ini
22extra_files = $(extra_bin) $(extra_txt)
23
24# FIXME: need to keep in step with src/Makefile.am
25base_progs = cad3d cavern diffpos extend sorterr 3dtopos
26
27AUTHORS: doc/AUTHORS.htm
28        w3m -dump doc/AUTHORS.htm > AUTHORS
29
30HACKING: doc/HACKING.htm
31        w3m -dump doc/HACKING.htm > HACKING
32
33TODO: doc/TODO.htm
34        w3m -dump doc/TODO.htm > TODO
35
36rpm : dist
37        : # spec file is produced using AC_OUTPUT
38        echo %_topdir `pwd` > rpmmacros
39        echo %_rpmdir `pwd` >> rpmmacros
40        echo %_sourcedir `pwd` >> rpmmacros
41        echo %_specdir `pwd` >> rpmmacros
42        echo %_srcrpmdir `pwd` >> rpmmacros
43        echo %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm >> rpmmacros
44        : #
45        echo macrofiles : `rpmbuild --showrc | sed 's/^macrofiles\> *: //p;d'`:`pwd`/rpmmacros > rpmrc
46        : #
47        rm -rf BUILD
48        mkdir BUILD
49        : #
50        rpmbuild -bs --clean --rcfile /usr/lib/rpm/rpmrc:`pwd`/rpmrc survex.spec
51
52mingw : all mingw_iss
53
54mingw_iss : survex.iss
55        $(RM) -rf iss_tmp
56        mkdir iss_tmp
57        cp src/svxedit iss_tmp/svxedit.tcl
58        cp $(extra_txt) survex.iss iss_tmp
59        : # so the installer can display the license
60        cp COPYING iss_tmp/COPYING.txt
61        cd doc;cp @HTMLFILES@ ../iss_tmp
62        : # convert LF to CR+LF
63        perl -p -i -e 's/\n/\r\n/' iss_tmp/*
64        for f in $(base_progs) aven editwrap ; do cp src/$$f.exe iss_tmp ; done
65        cp lib/icons/*.ico lib/icons/*.png iss_tmp
66        : # don't ship pngs for which we ship the ico version
67        for a in iss_tmp/*.ico ; do rm `echo $$a|sed 's/\.ico/.png/'` ; done
68        : # but we do want aven.png for the About dialog
69        cp lib/icons/aven.png iss_tmp
70        : # not needed if we build wx without threads: gzip -dc /usr/share/doc/mingw32-runtime/mingwm10.dll.gz > iss_tmp/mingwm10.dll
71        mkdir iss_tmp/manual
72        cp doc/manual/*.htm iss_tmp/manual
73        : # convert LF to CR+LF
74        perl -p -i -e 's/\n/\r\n/' iss_tmp/manual/*
75        cp doc/manual/*.png iss_tmp/manual
76        cp $(extra_bin) iss_tmp
77        : # NB check for updates for each new wx version
78        for a in ca cs de es fr it pt pt_BR sk ; do\
79         mkdir iss_tmp/$$a;\
80         cp /usr/share/locale/$$a/LC_MESSAGES/wxstd.mo iss_tmp/$$a;\
81         echo 'Source: "'"$$a"'\wxstd.mo"; DestDir: "{app}\'"$$a"'"' >> iss_tmp/i18nfiles.iss;\
82        done
83        cp lib/*.isl iss_tmp
84        : # Also need to reduce colour depth it appears:
85        : # src/png2bmp lib/icons/aven_about.png iss_tmp/logo.bmp
86        DISPLAY= wine "c:/Program Files/Inno Setup 5/ISCC.exe" iss_tmp/survex.iss
87        mv iss_tmp/Output/*.exe .
88        $(RM) -rf iss_tmp
89
90dos_doc_zip_name = svxdoc-doswin-@VERSION@.zip
91dos_doc_exe_name = svxdoc-doswin-@VERSION@.exe
92
93dos_doc_exe : dos_doc_zip
94        $(RM) $(dos_doc_exe_name)~
95        cat dos_extras/unzipsfx.exe $(dos_doc_zip_name) > $(dos_doc_exe_name)~
96        zip -A $(dos_doc_exe_name)~
97        mv $(dos_doc_exe_name)~ $(dos_doc_exe_name)
98
99dos_doc_zip :
100        $(RM) $(dos_doc_zip_name)
101        : # -l means convert LF to CR+LF
102        cd doc && zip -9 -l ../$(dos_doc_zip_name) @DOCS_OTHER@
103
104.PHONY: rpm mingw mingw_iss dos_doc_exe dos_doc_zip
Note: See TracBrowser for help on using the repository browser.