source: git/Makefile.am @ 005adaf

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

Makefile.am: Copy PNG and JPG images from their new location.
Remove the code to strip out PNG images with .ico versions, as
those are now in a separate directory to the images that are PNG
format cross-platform.

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