[425d063] | 1 | ## Process this file with automake to produce Makefile.in |
---|
| 2 | |
---|
[6c7fbd5] | 3 | # We aim to be GNU compliant, but some required files are generated |
---|
[87681b8] | 4 | AUTOMAKE_OPTIONS = 1.5 foreign |
---|
[6c7fbd5] | 5 | |
---|
| 6 | # These files are installed automatically in --gnu mode |
---|
| 7 | GNU_FILES = INSTALL NEWS README COPYING AUTHORS ChangeLog |
---|
| 8 | |
---|
[47105bc] | 9 | SUBDIRS = . lib src doc tests |
---|
[425d063] | 10 | |
---|
[5ec2d6b] | 11 | # We never want to implicitly recurse into the vim subdirectory, but we still |
---|
| 12 | # want to distribute the files there. |
---|
[839db8b] | 13 | DIST_SUBDIRS = $(SUBDIRS) vim |
---|
[d1621779] | 14 | |
---|
[4844fb4] | 15 | EXTRA_DIST = $(GNU_FILES) TODO survex.iss.in OLDNEWS\ |
---|
| 16 | desc.txt desc-aven.txt survex.spec.in survex.spec\ |
---|
| 17 | buildmacosx.sh |
---|
| 18 | |
---|
[6e4a123] | 19 | extra_bin = lib/*.msg\ |
---|
| 20 | lib/aven.txf |
---|
[2eaaa3d] | 21 | extra_txt = lib/*.svx lib/print.ini |
---|
| 22 | extra_files = $(extra_bin) $(extra_txt) |
---|
[425d063] | 23 | |
---|
[1f22d4a] | 24 | # FIXME: need to keep in step with src/Makefile.am |
---|
[40f1e82] | 25 | base_progs = cad3d cavern diffpos extend sorterr 3dtopos |
---|
[2eaaa3d] | 26 | |
---|
[1c969fc] | 27 | AUTHORS: doc/AUTHORS.htm |
---|
| 28 | w3m -dump doc/AUTHORS.htm > AUTHORS |
---|
[6c7fbd5] | 29 | |
---|
[79b37a4c] | 30 | HACKING: doc/HACKING.htm |
---|
| 31 | w3m -dump doc/HACKING.htm > HACKING |
---|
| 32 | |
---|
[1c969fc] | 33 | TODO: doc/TODO.htm |
---|
| 34 | w3m -dump doc/TODO.htm > TODO |
---|
[6c7fbd5] | 35 | |
---|
[3f32910] | 36 | mingw : all mingw_iss |
---|
[425d063] | 37 | |
---|
[e9a1d22] | 38 | mingw_iss : survex.iss |
---|
[d365aec] | 39 | $(RM) -rf iss_tmp |
---|
[1d43ee5] | 40 | mkdir iss_tmp |
---|
[27b8b59] | 41 | cp src/svxedit iss_tmp/svxedit.tcl |
---|
[de934bd4] | 42 | cp $(extra_txt) survex.iss iss_tmp |
---|
[27b8b59] | 43 | : # so the installer can display the license |
---|
[de934bd4] | 44 | cp COPYING iss_tmp/COPYING.txt |
---|
[5636835] | 45 | cd doc;cp @HTMLFILES@ ../iss_tmp |
---|
[87681b8] | 46 | : # convert LF to CR+LF |
---|
[b71c279] | 47 | perl -p -i -e 's/\n/\r\n/' iss_tmp/* |
---|
[40f1e82] | 48 | for f in $(base_progs) aven editwrap ; do cp src/$$f.exe iss_tmp ; done |
---|
[27b8b59] | 49 | cp lib/icons/*.ico lib/icons/*.png iss_tmp |
---|
| 50 | : # don't ship pngs for which we ship the ico version |
---|
[b462168] | 51 | for a in iss_tmp/*.ico ; do rm `echo $$a|sed 's/\.ico/.png/'` ; done |
---|
[76bc8030] | 52 | : # but we do want aven.png for the About dialog |
---|
| 53 | cp lib/icons/aven.png iss_tmp |
---|
[7612a72] | 54 | : # not needed if we build wx without threads: gzip -dc /usr/share/doc/mingw32-runtime/mingwm10.dll.gz > iss_tmp/mingwm10.dll |
---|
[d56306f] | 55 | mkdir iss_tmp/manual |
---|
| 56 | cp doc/manual/*.htm iss_tmp/manual |
---|
[87681b8] | 57 | : # convert LF to CR+LF |
---|
[d56306f] | 58 | perl -p -i -e 's/\n/\r\n/' iss_tmp/manual/* |
---|
[b462168] | 59 | cp doc/manual/*.png iss_tmp/manual |
---|
[d365aec] | 60 | cp $(extra_bin) iss_tmp |
---|
[c953a98] | 61 | for f in /usr/share/locale/*/LC_MESSAGES/wxstd.mo ; do \ |
---|
| 62 | a=`echo "$$f"|sed 's!^/usr/share/locale/\([^/]*\).*!\1!'`; \ |
---|
[d80db60] | 63 | mkdir iss_tmp/$$a;\ |
---|
[c953a98] | 64 | cp "$$f" iss_tmp/$$a;\ |
---|
[e1aca86c] | 65 | echo 'Source: "'"$$a"'\wxstd.mo"; DestDir: "{app}\'"$$a"'"' >> iss_tmp/i18nfiles.iss;\ |
---|
[d80db60] | 66 | done |
---|
[5a0eabd] | 67 | cp lib/*.isl iss_tmp |
---|
[0580c6a] | 68 | : # Also need to reduce colour depth it appears: |
---|
| 69 | : # src/png2bmp lib/icons/aven_about.png iss_tmp/logo.bmp |
---|
[5a0eabd] | 70 | DISPLAY= wine "c:/Program Files/Inno Setup 5/ISCC.exe" iss_tmp/survex.iss |
---|
[1d43ee5] | 71 | mv iss_tmp/Output/*.exe . |
---|
[d365aec] | 72 | $(RM) -rf iss_tmp |
---|
[1d43ee5] | 73 | |
---|
[0fd6750] | 74 | .PHONY: mingw mingw_iss |
---|