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