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