source: git/Makefile.am @ 26ae6a9

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since 26ae6a9 was 2e8608e, checked in by Olly Betts <olly@…>, 10 years ago

Makefile.am: (Microsoft Windows version) Include dump3d in the
installer.

  • Property mode set to 100644
File size: 2.4 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3SUBDIRS = . lib src doc tests
4
5# We never want to implicitly recurse into the vim subdirectory, but we still
6# want to distribute the files there.
7DIST_SUBDIRS = $(SUBDIRS) vim
8
9EXTRA_DIST = TODO OLDNEWS\
10 desc.txt desc-aven.txt survex.spec\
11 buildmacosx.sh
12
13extra_bin = lib/*.msg\
14 lib/unifont.pixelfont
15extra_txt = lib/*.svx lib/print.ini
16extra_files = $(extra_bin) $(extra_txt)
17
18# FIXME: need to keep in step with src/Makefile.am
19base_progs = cad3d cavern diffpos extend sorterr 3dtopos dump3d
20
21AUTHORS: doc/AUTHORS.htm
22        w3m -dump doc/AUTHORS.htm > AUTHORS
23
24HACKING: doc/HACKING.htm
25        w3m -dump doc/HACKING.htm > HACKING
26
27TODO: doc/TODO.htm
28        w3m -dump doc/TODO.htm > TODO
29
30mingw : all mingw_iss
31
32mingw_iss : survex.iss
33        $(RM) -rf iss_tmp
34        mkdir iss_tmp
35        cp src/svxedit iss_tmp/svxedit.tcl
36        cp $(extra_txt) survex.iss iss_tmp
37        : # so the installer can display the license
38        cp COPYING iss_tmp/COPYING.txt
39        cd doc;cp @HTMLFILES@ ../iss_tmp
40        : # convert LF to CR+LF
41        perl -p -i -e 's/\n/\r\n/' iss_tmp/*
42        for f in $(base_progs) aven editwrap ; do cp src/$$f.exe iss_tmp ; done
43        cp lib/icons/*.ico lib/icons/*.png lib/icons/*.jpg iss_tmp
44        : # don't ship pngs for which we ship the ico version
45        for a in iss_tmp/*.ico ; do rm `echo $$a|sed 's/\.ico/.png/'` ; done
46        : # but we do want aven.png for the About dialog
47        cp lib/icons/aven.png iss_tmp
48        : # not needed if we build wx without threads: gzip -dc /usr/share/doc/mingw32-runtime/mingwm10.dll.gz > iss_tmp/mingwm10.dll
49        mkdir iss_tmp/manual
50        cp doc/manual/*.htm iss_tmp/manual
51        : # convert LF to CR+LF
52        perl -p -i -e 's/\n/\r\n/' iss_tmp/manual/*
53        cp doc/manual/*.png iss_tmp/manual
54        cp $(extra_bin) iss_tmp
55        for d in /usr/i586-mingw32msvc/share/locale /usr/share/locale ; do \
56          if test -d "$d" ; then \
57            for f in "$d"/locale/*/LC_MESSAGES/wxstd.mo ; do \
58              a=`echo "$$f"|sed 's!^.*/\([^/]*\)/LC_MESSAGES/wxstd\.mo$!\1!'`; \
59              mkdir iss_tmp/$$a; \
60              cp "$$f" iss_tmp/$$a; \
61              echo 'Source: "'"$$a"'\wxstd.mo"; DestDir: "{app}\'"$$a"'"' ; \
62            done; \
63            break; \
64          fi \
65        done > iss_tmp/i18nfiles.iss
66        cp lib/*.isl iss_tmp
67        : # Also need to reduce colour depth it appears:
68        : # src/png2bmp lib/icons/aven_about.png iss_tmp/logo.bmp
69        DISPLAY= wine "c:/Program Files/Inno Setup 5/ISCC.exe" iss_tmp/survex.iss
70        mv iss_tmp/Output/*.exe .
71        $(RM) -rf iss_tmp
72
73.PHONY: mingw mingw_iss
Note: See TracBrowser for help on using the repository browser.