source: git/Makefile.am @ 7061908

Last change on this file since 7061908 was 7061908, checked in by Olly Betts <olly@…>, 6 weeks ago

Stop trying to ship removed file buildmacosx.sh

  • Property mode set to 100644
File size: 2.6 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3ACLOCAL_AMFLAGS = -I m4
4
5SUBDIRS = . 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.
9DIST_SUBDIRS = $(SUBDIRS) vim
10
11EXTRA_DIST = TODO OLDNEWS\
12 desc.txt desc-aven.txt survex.spec
13
14extra_bin = lib/*.msg\
15 lib/unifont.pixelfont
16extra_txt = lib/*.svx
17extra_files = $(extra_bin) $(extra_txt)
18
19# FIXME: need to keep in step with bin_PROGRAMS in src/Makefile.am
20mingw_progs = cavern diffpos dump3d extend sorterr survexport aven
21
22AUTHORS: doc/AUTHORS.htm
23        w3m -dump doc/AUTHORS.htm > AUTHORS
24
25HACKING: doc/HACKING.htm
26        w3m -dump doc/HACKING.htm > HACKING
27
28TODO: doc/TODO.htm
29        w3m -dump doc/TODO.htm > TODO
30
31# Create Aven.app for macOS - run as e.g.:
32# make create-aven-app APP_PATH=Aven.app
33create-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"; \
42          rm -rf '$(APP_PATH)/Contents/Resources/'"$$i"; \
43        done
44
45mingw : all mingw_iss
46
47mingw_iss : survex.iss
48        $(RM) -rf iss_tmp
49        mkdir iss_tmp
50        cp $(extra_txt) survex.iss iss_tmp
51        : # so the installer can display the license
52        cp COPYING iss_tmp/COPYING.txt
53        cd doc && cp @HTMLFILES@ ../iss_tmp
54        : # convert LF to CR+LF
55        perl -p -i -e 's/\n/\r\n/' iss_tmp/*
56        for f in $(mingw_progs) ; do cp src/$$f.exe iss_tmp ; done
57        cp lib/icons/*.ico lib/images/*.png iss_tmp
58        : # not needed if we build wx without threads: gzip -dc /usr/share/doc/mingw32-runtime/mingwm10.dll.gz > iss_tmp/mingwm10.dll
59        mkdir iss_tmp/manual
60        cp doc/manual/*.htm iss_tmp/manual
61        : # convert LF to CR+LF
62        perl -p -i -e 's/\n/\r\n/' iss_tmp/manual/*
63        cp doc/manual/*.png iss_tmp/manual
64        cp $(extra_bin) iss_tmp
65        for f in "`$(WX_CONFIG) --prefix`"/share/locale/*/LC_MESSAGES/wxstd.mo ; do \
66          a=`echo "$$f"|sed 's!^.*/\([^/]*\)/LC_MESSAGES/wxstd\.mo$$!\1!'`; \
67          mkdir iss_tmp/$$a; \
68          cp "$$f" iss_tmp/$$a; \
69          echo 'Source: "'"$$a"'\wxstd.mo"; DestDir: "{app}\'"$$a"'"' ; \
70        done > iss_tmp/i18nfiles.iss
71        cp lib/*.isl iss_tmp
72        mkdir iss_tmp/proj
73        cp -p /usr/${host}/share/proj/epsg lib/proj/esri iss_tmp/proj
74        : # Also need to reduce colour depth it appears:
75        : # src/png2bmp lib/icons/aven_about.png iss_tmp/logo.bmp
76        DISPLAY= wine "c:/Program Files/Inno Setup 5/ISCC.exe" iss_tmp/survex.iss
77        mv iss_tmp/Output/*.exe .
78        $(RM) -rf iss_tmp
79
80.PHONY: mingw mingw_iss
Note: See TracBrowser for help on using the repository browser.