[425d063] | 1 | ## Process this file with automake to produce Makefile.in |
---|
| 2 | |
---|
[4a7c2f0d] | 3 | ACLOCAL_AMFLAGS = -I m4 |
---|
| 4 | |
---|
[47105bc] | 5 | SUBDIRS = . lib src doc tests |
---|
[425d063] | 6 | |
---|
[5ec2d6b] | 7 | # We never want to implicitly recurse into the vim subdirectory, but we still |
---|
| 8 | # want to distribute the files there. |
---|
[839db8b] | 9 | DIST_SUBDIRS = $(SUBDIRS) vim |
---|
[d1621779] | 10 | |
---|
[6e0cdc2c] | 11 | EXTRA_DIST = TODO OLDNEWS\ |
---|
[7061908] | 12 | desc.txt desc-aven.txt survex.spec |
---|
[4844fb4] | 13 | |
---|
[6e4a123] | 14 | extra_bin = lib/*.msg\ |
---|
[1aa3fb7] | 15 | lib/unifont.pixelfont |
---|
[a72ed95] | 16 | extra_txt = lib/*.svx |
---|
[2eaaa3d] | 17 | extra_files = $(extra_bin) $(extra_txt) |
---|
[425d063] | 18 | |
---|
[e33b694] | 19 | # FIXME: need to keep in step with bin_PROGRAMS in src/Makefile.am |
---|
[79b32a95] | 20 | mingw_progs = cavern diffpos dump3d extend sorterr survexport aven |
---|
[2eaaa3d] | 21 | |
---|
[1c969fc] | 22 | AUTHORS: doc/AUTHORS.htm |
---|
| 23 | w3m -dump doc/AUTHORS.htm > AUTHORS |
---|
[6c7fbd5] | 24 | |
---|
[79b37a4c] | 25 | HACKING: doc/HACKING.htm |
---|
| 26 | w3m -dump doc/HACKING.htm > HACKING |
---|
| 27 | |
---|
[1c969fc] | 28 | TODO: doc/TODO.htm |
---|
| 29 | w3m -dump doc/TODO.htm > TODO |
---|
[6c7fbd5] | 30 | |
---|
[2ed64d4] | 31 | # Create Aven.app for macOS - run as e.g.: |
---|
| 32 | # make create-aven-app APP_PATH=Aven.app |
---|
| 33 | create-aven-app: |
---|
| 34 | mkdir -p '$(APP_PATH)/Contents/MacOS' '$(APP_PATH)/Contents/Resources' |
---|
| 35 | cp lib/Info.plist '$(APP_PATH)/Contents' |
---|
| 36 | printf APPLAVEN > '$(APP_PATH)/Contents/PkgInfo' |
---|
| 37 | for zip in lib/icons/*.iconset.zip ; do \ |
---|
| 38 | set -e; \ |
---|
| 39 | unzip -d '$(APP_PATH)/Contents/Resources' "$$zip"; \ |
---|
| 40 | i=`echo "$$zip"|sed 's!.*/\(.*\)\.zip$$!\1!'`; \ |
---|
| 41 | iconutil --convert icns '$(APP_PATH)/Contents/Resources/'"$$i"; \ |
---|
[93bb74a] | 42 | rm -rf '$(APP_PATH)/Contents/Resources/'"$$i"; \ |
---|
[2ed64d4] | 43 | done |
---|
| 44 | |
---|
[3f32910] | 45 | mingw : all mingw_iss |
---|
[425d063] | 46 | |
---|
[e9a1d22] | 47 | mingw_iss : survex.iss |
---|
[d365aec] | 48 | $(RM) -rf iss_tmp |
---|
[1d43ee5] | 49 | mkdir iss_tmp |
---|
[de934bd4] | 50 | cp $(extra_txt) survex.iss iss_tmp |
---|
[27b8b59] | 51 | : # so the installer can display the license |
---|
[de934bd4] | 52 | cp COPYING iss_tmp/COPYING.txt |
---|
[35903f9] | 53 | cd doc && cp @HTMLFILES@ ../iss_tmp |
---|
[87681b8] | 54 | : # convert LF to CR+LF |
---|
[b71c279] | 55 | perl -p -i -e 's/\n/\r\n/' iss_tmp/* |
---|
[e33b694] | 56 | for f in $(mingw_progs) ; do cp src/$$f.exe iss_tmp ; done |
---|
[67ba15d] | 57 | cp lib/icons/*.ico lib/images/*.png iss_tmp |
---|
[7612a72] | 58 | : # not needed if we build wx without threads: gzip -dc /usr/share/doc/mingw32-runtime/mingwm10.dll.gz > iss_tmp/mingwm10.dll |
---|
[d56306f] | 59 | mkdir iss_tmp/manual |
---|
| 60 | cp doc/manual/*.htm iss_tmp/manual |
---|
[87681b8] | 61 | : # convert LF to CR+LF |
---|
[d56306f] | 62 | perl -p -i -e 's/\n/\r\n/' iss_tmp/manual/* |
---|
[b462168] | 63 | cp doc/manual/*.png iss_tmp/manual |
---|
[d365aec] | 64 | cp $(extra_bin) iss_tmp |
---|
[b23a7a9] | 65 | for f in "`$(WX_CONFIG) --prefix`"/share/locale/*/LC_MESSAGES/wxstd.mo ; do \ |
---|
[b8f74af] | 66 | a=`echo "$$f"|sed 's!^.*/\([^/]*\)/LC_MESSAGES/wxstd\.mo$$!\1!'`; \ |
---|
[b23a7a9] | 67 | mkdir iss_tmp/$$a; \ |
---|
| 68 | cp "$$f" iss_tmp/$$a; \ |
---|
[2981264] | 69 | printf 'Source: "%s\\wxstd.mo"; DestDir: "{app}\\%s"\n' "$$a" "$$a"; \ |
---|
[adceff5] | 70 | done > iss_tmp/i18nfiles.iss |
---|
[5a0eabd] | 71 | cp lib/*.isl iss_tmp |
---|
[0580c6a] | 72 | : # Also need to reduce colour depth it appears: |
---|
| 73 | : # src/png2bmp lib/icons/aven_about.png iss_tmp/logo.bmp |
---|
[6cc96a9] | 74 | cp -a /usr/i686-w64-mingw32/share/proj iss_tmp/proj |
---|
[9990aab] | 75 | DISPLAY= wine "c:/Program Files/Inno Setup 6/ISCC.exe" iss_tmp/survex.iss |
---|
[1d43ee5] | 76 | mv iss_tmp/Output/*.exe . |
---|
[d365aec] | 77 | $(RM) -rf iss_tmp |
---|
[1d43ee5] | 78 | |
---|
[0fd6750] | 79 | .PHONY: mingw mingw_iss |
---|