source: git/Makefile.am @ 84d66990

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 84d66990 was 839db8b, checked in by Olly Betts <olly@…>, 18 years ago

Sort out installation and packaging of vim files.

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3256 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 4.0 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3# We aim to be GNU compliant, but some required files are generated
4AUTOMAKE_OPTIONS = 1.5 foreign
5
6# These files are installed automatically in --gnu mode
7GNU_FILES = INSTALL NEWS README COPYING AUTHORS ChangeLog
8
9SUBDIRS = . lib src doc tests debian
10
11# seem to need this for "make distclean" to recurse?!?
12DIST_SUBDIRS = $(SUBDIRS) vim
13
14EXTRA_DIST = $(GNU_FILES) TODO survex.iss.in OLDNEWS\
15 desc.txt desc-aven.txt survex.spec.in survex.spec\
16 buildmacosx.sh
17
18extra_bin = lib/*.msg\
19 lib/aven.txf
20extra_txt = lib/*.svx lib/print.ini
21extra_files = $(extra_bin) $(extra_txt)
22
23# FIXME: need to keep in step with src/Makefile.am
24base_progs = cad3d cavern diffpos extend sorterr 3dtopos
25
26AUTHORS: doc/AUTHORS.htm
27        w3m -dump doc/AUTHORS.htm > AUTHORS
28
29HACKING: doc/HACKING.htm
30        w3m -dump doc/HACKING.htm > HACKING
31
32TODO: doc/TODO.htm
33        w3m -dump doc/TODO.htm > TODO
34
35rpm : dist
36        : # spec file is produced using AC_OUTPUT
37        echo %_topdir `pwd` > rpmmacros
38        echo %_rpmdir `pwd` >> rpmmacros
39        echo %_sourcedir `pwd` >> rpmmacros
40        echo %_specdir `pwd` >> rpmmacros
41        echo %_srcrpmdir `pwd` >> rpmmacros
42        echo %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm >> rpmmacros
43        : #
44        echo macrofiles : `rpmbuild --showrc | sed 's/^macrofiles\> *: //p;d'`:`pwd`/rpmmacros > rpmrc
45        : #
46        rm -rf BUILD
47        mkdir BUILD
48        : #
49        rpmbuild -bs --clean --rcfile /usr/lib/rpm/rpmrc:`pwd`/rpmrc survex.spec
50
51debian : dist
52        : # overkill maybe - we could probably just use this tree
53        : # but then the .deb-s go in the parent directory, plus we get
54        : # lintian moaning about the directory name not having the
55        : # version number
56        -rm -rf deb
57        mkdir deb
58        cd deb && tar zxvf ../${PACKAGE}-${VERSION}.tar.gz
59        : # -us and -uc mean don't sign packages
60        cd deb/${PACKAGE}-${VERSION} && debuild --no-tgz-check -us -uc
61        mv deb/*.deb deb/*.dsc deb/*.changes deb/*.gz .
62        rm -rf deb
63
64mingw : all mingw_iss
65
66mingw_iss : survex.iss
67        $(RM) -rf iss_tmp
68        mkdir iss_tmp
69        cp src/svxedit iss_tmp/svxedit.tcl
70        cp $(extra_txt) survex.iss iss_tmp
71        : # so the installer can display the license
72        cp COPYING iss_tmp/COPYING.txt
73        cd doc;cp @HTMLFILES@ ../iss_tmp
74        : # convert LF to CR+LF
75        perl -p -i -e 's/\n/\r\n/' iss_tmp/*
76        for f in $(base_progs) aven editwrap ; do cp src/$$f.exe iss_tmp ; done
77        cp lib/icons/*.ico lib/icons/*.png iss_tmp
78        : # don't ship pngs for which we ship the ico version
79        for a in iss_tmp/*.ico ; do rm `echo $$a|sed 's/\.ico/.png/'` ; done
80        : # but we do want aven.png for the About dialog
81        cp lib/icons/aven.png iss_tmp
82        : # not needed if we build wx without threads: gzip -dc /usr/share/doc/mingw32-runtime/mingwm10.dll.gz > iss_tmp/mingwm10.dll
83        mkdir iss_tmp/manual
84        cp doc/manual/*.htm iss_tmp/manual
85        : # convert LF to CR+LF
86        perl -p -i -e 's/\n/\r\n/' iss_tmp/manual/*
87        cp doc/manual/*.png iss_tmp/manual
88        cp $(extra_bin) iss_tmp
89        : # NB check for updates for each new wx version
90        : # also currently available are:
91        : # af da el eu fi hi hu id ja lv nb nl pl ru sl sv tr uk zh_CN zh_TW
92        for a in ca cs de es fr it pt_BR ; do\
93         mkdir iss_tmp/$$a;\
94         cp /usr/i586-mingw32msvc/share/locale/$$a/LC_MESSAGES/wxstd.mo iss_tmp/$$a;\
95         echo 'Source: "'"$$a"'\wxstd.mo"; DestDir: "{app}\'"$$a"'"' >> iss_tmp/i18nfiles.iss;\
96        done
97        : # Also need to reduce colour depth it appears:
98        : # src/png2bmp lib/icons/aven_about.png iss_tmp/logo.bmp
99        echo 'wine "c:/Program Files/Inno Setup 5/ISCC.exe" iss_tmp/survex.iss' > iss_tmp/runissinwine
100        chmod 755 iss_tmp/runissinwine
101        ./xvfb-run -a --server-args="-screen 0 64x32x8" iss_tmp/runissinwine
102        mv iss_tmp/Output/*.exe .
103        $(RM) -rf iss_tmp
104
105dos_doc_zip_name = svxdoc-doswin-@VERSION@.zip
106dos_doc_exe_name = svxdoc-doswin-@VERSION@.exe
107
108dos_doc_exe : dos_doc_zip
109        $(RM) $(dos_doc_exe_name)~
110        cat dos_extras/unzipsfx.exe $(dos_doc_zip_name) > $(dos_doc_exe_name)~
111        zip -A $(dos_doc_exe_name)~
112        mv $(dos_doc_exe_name)~ $(dos_doc_exe_name)
113
114dos_doc_zip :
115        $(RM) $(dos_doc_zip_name)
116        : # -l means convert LF to CR+LF
117        cd doc && zip -9 -l ../$(dos_doc_zip_name) @DOCS_OTHER@
118
119.PHONY: rpm debian mingw mingw_iss dos_doc_exe dos_doc_zip
Note: See TracBrowser for help on using the repository browser.