source: git/Makefile.am @ 5ec2d6b

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

Correct comment.

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

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