| [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] | 4 | AUTOMAKE_OPTIONS = 1.5 foreign
|
|---|
| [6c7fbd5] | 5 |
|
|---|
| 6 | # These files are installed automatically in --gnu mode
|
|---|
| 7 | GNU_FILES = INSTALL NEWS README COPYING AUTHORS ChangeLog
|
|---|
| 8 |
|
|---|
| [b8bf5bc] | 9 | EXTRA_DIST = $(GNU_FILES) TODO OLDNEWS\
|
|---|
| 10 | desc.txt desc-aven.txt survex.spec\
|
|---|
| [b7bd145] | 11 | desc-svxedit.txt alien.pl\
|
|---|
| [53e9dd0] | 12 | buildmacosx.sh vim/syntax/survex.vim vim/ftdetect/survex.vim
|
|---|
| [647407d] | 13 |
|
|---|
| [f6a3719] | 14 | SUBDIRS = . lib src doc tests debian
|
|---|
| [425d063] | 15 |
|
|---|
| [d1621779] | 16 | # seem to need this for "make distclean" to recurse?!?
|
|---|
| 17 | DIST_SUBDIRS = $(SUBDIRS)
|
|---|
| 18 |
|
|---|
| [168df28] | 19 | extra_bin = lib/*.msg\
|
|---|
| 20 | lib/default.bit lib/bold.bit
|
|---|
| [2eaaa3d] | 21 | extra_txt = lib/*.svx lib/print.ini
|
|---|
| 22 | extra_files = $(extra_bin) $(extra_txt)
|
|---|
| [425d063] | 23 |
|
|---|
| [1f22d4a] | 24 | # FIXME: need to keep in step with src/Makefile.am
|
|---|
| [168df28] | 25 | base_progs = cad3d cavern diffpos extend sorterr 3dtopos\
|
|---|
| 26 | printdm printps printpcl printhpgl
|
|---|
| [2eaaa3d] | 27 |
|
|---|
| [1c969fc] | 28 | AUTHORS: doc/AUTHORS.htm
|
|---|
| 29 | w3m -dump doc/AUTHORS.htm > AUTHORS
|
|---|
| [6c7fbd5] | 30 |
|
|---|
| [79b37a4c] | 31 | HACKING: doc/HACKING.htm
|
|---|
| 32 | w3m -dump doc/HACKING.htm > HACKING
|
|---|
| 33 |
|
|---|
| [1c969fc] | 34 | TODO: doc/TODO.htm
|
|---|
| 35 | w3m -dump doc/TODO.htm > TODO
|
|---|
| [6c7fbd5] | 36 |
|
|---|
| [851c965] | 37 | rpm : dist
|
|---|
| 38 | : # spec file is produced using AC_OUTPUT
|
|---|
| 39 | echo %_topdir `pwd` > rpmmacros
|
|---|
| 40 | echo %_rpmdir `pwd` >> rpmmacros
|
|---|
| 41 | echo %_sourcedir `pwd` >> rpmmacros
|
|---|
| 42 | echo %_specdir `pwd` >> rpmmacros
|
|---|
| 43 | echo %_srcrpmdir `pwd` >> rpmmacros
|
|---|
| 44 | echo %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm >> rpmmacros
|
|---|
| 45 | : #
|
|---|
| 46 | echo macrofiles : `rpm --showrc | sed 's/^macrofiles\> *: //p;d'`:`pwd`/rpmmacros > rpmrc
|
|---|
| 47 | : #
|
|---|
| [d00e778] | 48 | rm -rf BUILD
|
|---|
| 49 | mkdir BUILD
|
|---|
| 50 | : #
|
|---|
| [9f5d460c] | 51 | rpmbuild -bs --clean --rcfile /usr/lib/rpm/rpmrc:`pwd`/rpmrc survex.spec
|
|---|
| [851c965] | 52 |
|
|---|
| [f6a3719] | 53 | debian : dist
|
|---|
| 54 | : # overkill maybe - we could probably just use this tree
|
|---|
| 55 | : # but then the .deb-s go in the parent directory, plus we get
|
|---|
| 56 | : # lintian moaning about the directory name not having the
|
|---|
| 57 | : # version number
|
|---|
| 58 | -rm -rf deb
|
|---|
| 59 | mkdir deb
|
|---|
| 60 | cd deb && tar zxvf ../${PACKAGE}-${VERSION}.tar.gz
|
|---|
| [87681b8] | 61 | : # -us and -uc mean don't sign packages
|
|---|
| [65d4e46] | 62 | cd deb/${PACKAGE}-${VERSION} && debuild -us -uc
|
|---|
| [404e6f62] | 63 | mv deb/*.deb deb/*.dsc deb/*.changes deb/*.gz .
|
|---|
| [24d8c39] | 64 | rm -rf deb
|
|---|
| [749fd1e] | 65 |
|
|---|
| [2eaaa3d] | 66 | dostxt :
|
|---|
| [f9daedc] | 67 | $(RM) -rf dostxt_tmp
|
|---|
| [2eaaa3d] | 68 | mkdir dostxt_tmp
|
|---|
| [5636835] | 69 | for a in @EXTRA_TEXT@ ; do ln -s ../$$a dostxt_tmp/$$a.txt ; done
|
|---|
| [87681b8] | 70 | : # rename to 8.3
|
|---|
| [2eaaa3d] | 71 | mv dostxt_tmp/ChangeLog.txt dostxt_tmp/Changes.txt
|
|---|
| 72 |
|
|---|
| 73 | djgpp : all djgpp_zip
|
|---|
| 74 |
|
|---|
| [242f7439] | 75 | djgpp_zip_name = survex-dos-@VERSION@.zip
|
|---|
| [15d03ab] | 76 | djgpp_exe_name = survex-dos-@VERSION@.exe
|
|---|
| [e68fccf] | 77 |
|
|---|
| 78 | djgpp_exe : djgpp_zip
|
|---|
| 79 | $(RM) $(djgpp_exe_name)~
|
|---|
| 80 | cat dos_extras/unzipsfx.exe $(djgpp_zip_name) > $(djgpp_exe_name)~
|
|---|
| 81 | zip -A $(djgpp_exe_name)~
|
|---|
| 82 | mv $(djgpp_exe_name)~ $(djgpp_exe_name)
|
|---|
| 83 |
|
|---|
| [2eaaa3d] | 84 | djgpp_zip : dostxt
|
|---|
| [f969e06] | 85 | test -d djgpp_exes || mkdir djgpp_exes
|
|---|
| [2eaaa3d] | 86 | for a in $(base_progs) caverot ; do cp src/$$a.exe djgpp_exes ; done
|
|---|
| [242f7439] | 87 | $(RM) $(djgpp_zip_name)
|
|---|
| [8840529] | 88 | zip -9 -j $(djgpp_zip_name) djgpp_exes/*.exe $(extra_bin)\
|
|---|
| [2eaaa3d] | 89 | djgpp_extras/cwsdpmi.exe djgpp_extras/emu387.dxe
|
|---|
| [58263c7] | 90 | ln -s ../INSTALL.DOS dostxt_tmp/INSTALL.txt
|
|---|
| 91 | ln -s ../README dostxt_tmp/README.txt
|
|---|
| [750a2dd] | 92 | ln -s ../src/svxedit dostxt_tmp/svxedit.tcl
|
|---|
| [87681b8] | 93 | : # -l means convert LF to CR+LF
|
|---|
| [de934bd4] | 94 | : # FIXME: really include dostxt too on DOS?
|
|---|
| [de389c9] | 95 | zip -9 -j -l $(djgpp_zip_name) dostxt_tmp/*.txt dostxt_tmp/svxedit.tcl\
|
|---|
| 96 | $(extra_txt)
|
|---|
| [8840529] | 97 | cd doc;zip -9 -l ../$(djgpp_zip_name) manual/*.htm @HTMLFILES@
|
|---|
| 98 | cd doc;zip -9 ../$(djgpp_zip_name) manual/*.png
|
|---|
| [2eaaa3d] | 99 | $(RM) -rf dostxt_tmp
|
|---|
| 100 |
|
|---|
| [3f32910] | 101 | mingw : all mingw_iss
|
|---|
| [425d063] | 102 |
|
|---|
| [6dc55cf] | 103 | mingw_iss : survex.iss
|
|---|
| [faa8fc9] | 104 | $(RM) -rf iss_tmp
|
|---|
| [1d43ee5] | 105 | mkdir iss_tmp
|
|---|
| [750a2dd] | 106 | cp src/svxedit iss_tmp/svxedit.tcl
|
|---|
| [de934bd4] | 107 | cp $(extra_txt) survex.iss iss_tmp
|
|---|
| [de389c9] | 108 | : # so the installer can display the license
|
|---|
| [de934bd4] | 109 | cp COPYING iss_tmp/COPYING.txt
|
|---|
| [5636835] | 110 | cd doc;cp @HTMLFILES@ ../iss_tmp
|
|---|
| [87681b8] | 111 | : # convert LF to CR+LF
|
|---|
| [b71c279] | 112 | perl -p -i -e 's/\n/\r\n/' iss_tmp/*
|
|---|
| [faa8fc9] | 113 | for f in $(base_progs) aven printwin editwrap ; do cp src/$$f.exe iss_tmp ; done
|
|---|
| [a243fc5] | 114 | cp lib/icons/*.ico lib/icons/*.png iss_tmp
|
|---|
| 115 | : # don't ship pngs for which we ship the ico version
|
|---|
| [41d3795] | 116 | for a in iss_tmp/*.ico ; do rm `echo $$a|sed 's/\.ico/.png/'` ; done
|
|---|
| [168df28] | 117 | : # but we do want aven.png for the About dialog
|
|---|
| 118 | cp lib/icons/aven.png iss_tmp
|
|---|
| 119 | : # not needed if we build wx without threads: gzip -dc /usr/share/doc/mingw32-runtime/mingwm10.dll.gz > iss_tmp/mingwm10.dll
|
|---|
| [d56306f] | 120 | mkdir iss_tmp/manual
|
|---|
| 121 | cp doc/manual/*.htm iss_tmp/manual
|
|---|
| [87681b8] | 122 | : # convert LF to CR+LF
|
|---|
| [d56306f] | 123 | perl -p -i -e 's/\n/\r\n/' iss_tmp/manual/*
|
|---|
| [bb3a530] | 124 | cp doc/manual/*.png iss_tmp/manual
|
|---|
| [faa8fc9] | 125 | cp $(extra_bin) iss_tmp
|
|---|
| [4f3c188] | 126 | for f in /usr/share/locale/*/LC_MESSAGES/wxstd.mo ; do \
|
|---|
| 127 | a=`echo "$$f"|sed 's!^/usr/share/locale/\([^/]*\).*!\1!'`; \
|
|---|
| [d80db60] | 128 | mkdir iss_tmp/$$a;\
|
|---|
| [4f3c188] | 129 | cp "$$f" iss_tmp/$$a;\
|
|---|
| [9faed96] | 130 | echo 'Source: "'"$$a"'\wxstd.mo"; DestDir: "{app}\'"$$a"'"' >> iss_tmp/i18nfiles.iss;\
|
|---|
| [d80db60] | 131 | done
|
|---|
| [9faed96] | 132 | cp lib/*.isl iss_tmp
|
|---|
| [6dc55cf] | 133 | : # Also need to reduce colour depth it appears:
|
|---|
| 134 | : # src/png2bmp lib/icons/aven_about.png iss_tmp/logo.bmp
|
|---|
| [9faed96] | 135 | DISPLAY= wine "c:/Program Files/Inno Setup 5/ISCC.exe" iss_tmp/survex.iss
|
|---|
| [1d43ee5] | 136 | mv iss_tmp/Output/*.exe .
|
|---|
| [faa8fc9] | 137 | $(RM) -rf iss_tmp
|
|---|
| [1d43ee5] | 138 |
|
|---|
| [242f7439] | 139 | bc_zip_name = survex-dos286-@VERSION@.zip
|
|---|
| [e68fccf] | 140 | bc_exe_name = survex-dos286-@VERSION@.exe
|
|---|
| 141 |
|
|---|
| 142 | borlandc_exe : borlandc_zip
|
|---|
| 143 | $(RM) $(bc_exe_name)~
|
|---|
| 144 | cat dos_extras/unzipsfx.exe $(bc_zip_name) > $(bc_exe_name)~
|
|---|
| 145 | zip -A $(bc_exe_name)~
|
|---|
| 146 | mv $(bc_exe_name)~ $(bc_exe_name)
|
|---|
| [242f7439] | 147 |
|
|---|
| [2eaaa3d] | 148 | borlandc_zip : dostxt
|
|---|
| [242f7439] | 149 | $(RM) $(bc_zip_name)
|
|---|
| [8840529] | 150 | zip -9 -j $(bc_zip_name) bc_exes/*.exe $(extra_bin) bc_extras/*.bgi
|
|---|
| [58263c7] | 151 | ln -s ../INSTALL.DOS dostxt_tmp/INSTALL.txt
|
|---|
| 152 | ln -s ../README dostxt_tmp/README.txt
|
|---|
| [87681b8] | 153 | : # -l means convert LF to CR+LF
|
|---|
| [de934bd4] | 154 | : # FIXME: really include dostxt too on DOS?
|
|---|
| [8840529] | 155 | zip -9 -j -l $(bc_zip_name) dostxt_tmp/*.txt $(extra_txt)
|
|---|
| 156 | cd doc;zip -9 -l ../$(bc_zip_name) manual/*.htm @HTMLFILES@
|
|---|
| 157 | cd doc;zip -9 ../$(bc_zip_name) manual/*.png
|
|---|
| [2eaaa3d] | 158 | $(RM) -rf dostxt_tmp
|
|---|
| [425d063] | 159 |
|
|---|
| [d4d7e27] | 160 | riscos_zip_name = survex-riscos-@VERSION@.zip
|
|---|
| [242f7439] | 161 |
|
|---|
| [425d063] | 162 | riscos_zip :
|
|---|
| [242f7439] | 163 | $(RM) $(riscos_zip_name)
|
|---|
| [87681b8] | 164 | : # needs a zip with Darren Salt's patches, which'll hopefully be merged
|
|---|
| 165 | : # into the mainstream distribution in future
|
|---|
| [2eaaa3d] | 166 | $(RM) -rf riscos_tmp
|
|---|
| 167 | mkdir riscos_tmp
|
|---|
| [58263c7] | 168 | ln -s ../README.ros riscos_tmp/\!ReadMe,fff
|
|---|
| [87681b8] | 169 | : # "cp -r riscos_extras riscos_tmp" but avoid CVS directories
|
|---|
| [011fe59] | 170 | cd riscos_extras; tar --exclude CVS -cf - . | (cd ../riscos_tmp ; tar xf -)
|
|---|
| [58263c7] | 171 | cp -r riscos_extras/\!* riscos_tmp
|
|---|
| [2eaaa3d] | 172 | for f in $(base_progs) caverot ; do\
|
|---|
| [d4d7e27] | 173 | ln -s ../../riscos_exes/$$f riscos_tmp/\!Cavern/$$f,ff8 ; done
|
|---|
| [5636835] | 174 | for f in @EXTRA_TEXT@ ; do\
|
|---|
| [2eaaa3d] | 175 | b=`echo "$$f" | sed 's!.*/!!'` ;\
|
|---|
| 176 | type=fff ;\
|
|---|
| 177 | case "$$f" in\
|
|---|
| 178 | *.bit) type=ffd ;;\
|
|---|
| 179 | *.msg) type=ffd ;;\
|
|---|
| 180 | esac ;\
|
|---|
| 181 | ln -s ../$$f riscos_tmp/$$b,$$type ; done
|
|---|
| [d4d7e27] | 182 | for f in $(extra_files) ; do\
|
|---|
| 183 | b=`echo "$$f" | sed 's!.*/!!'` ;\
|
|---|
| 184 | type=fff ;\
|
|---|
| 185 | case "$$f" in\
|
|---|
| 186 | *.bit) type=ffd ;;\
|
|---|
| 187 | *.msg) type=ffd ;;\
|
|---|
| 188 | esac ;\
|
|---|
| 189 | ln -s ../../$$f riscos_tmp/\!Cavern/$$b,$$type ; done
|
|---|
| [5636835] | 190 | cd doc && for f in @HTMLFILES@ ; do\
|
|---|
| [c359bfd] | 191 | ln -s ../doc/$$f ../riscos_tmp/$$f,faf ; done
|
|---|
| [c14817d] | 192 | mkdir riscos_tmp/manual
|
|---|
| 193 | cd doc && for f in manual/*.htm ; do\
|
|---|
| [c359bfd] | 194 | ln -s ../../doc/$$f ../riscos_tmp/$$f,faf ; done
|
|---|
| [b1d01c1] | 195 | cd doc && for f in manual/*.png ; do\
|
|---|
| 196 | ln -s ../../doc/$$f ../riscos_tmp/$$f,b60 ; done
|
|---|
| [87681b8] | 197 | : # -R doesn't seem to work here, so just glob it all in
|
|---|
| [d4d7e27] | 198 | cd riscos_tmp && ../zip-magic -N ../$(riscos_zip_name) * */* */*/*
|
|---|
| [2eaaa3d] | 199 | $(RM) -rf riscos_tmp
|
|---|
| [425d063] | 200 |
|
|---|
| 201 | # source code for transfer to the RISC OS/DOS machines for compilation
|
|---|
| [242f7439] | 202 | alien_src_zip_name = src$(shell echo "@VERSION@"|sed 's/\./_/g').zip
|
|---|
| [425d063] | 203 |
|
|---|
| 204 | alien_src_zip :
|
|---|
| [242f7439] | 205 | $(RM) $(alien_src_zip_name)
|
|---|
| [425d063] | 206 | $(RM) -rf alien_tmp
|
|---|
| 207 | mkdir alien_tmp
|
|---|
| 208 | mkdir alien_tmp/c
|
|---|
| 209 | mkdir alien_tmp/h
|
|---|
| 210 | mkdir alien_tmp/s
|
|---|
| 211 | mkdir alien_tmp/o
|
|---|
| [1aa71d4] | 212 | mkdir alien_tmp/stdh
|
|---|
| [a33349e] | 213 | perl alien.pl src/*.c src/*.h > alien_tmp/\!ObeyMe,feb
|
|---|
| [e2fdd12] | 214 | echo 'RMEnsure DDEUtils 0 System:modules.ddeutils' > alien_tmp/\!MakeMe,feb
|
|---|
| 215 | echo 'Dir <Obey$$Dir>' >> alien_tmp/\!MakeMe,feb
|
|---|
| [a54128f] | 216 | echo amu >> alien_tmp/\!MakeMe,feb
|
|---|
| 217 | echo Back >> alien_tmp/\!MakeMe,feb
|
|---|
| [418914d] | 218 | ln -s ../src/riscos/stdh/[a-z]* alien_tmp
|
|---|
| [425d063] | 219 | ln -s ../src/borlandc/makefile alien_tmp/makefile.mak
|
|---|
| [418914d] | 220 | ln -s ../src/borlandc/make.bat alien_tmp
|
|---|
| [425d063] | 221 | ln -s ../../src/riscos/config.h alien_tmp/h/config
|
|---|
| 222 | ln -s ../../src/riscos/armrot.s alien_tmp/s/armrot
|
|---|
| [1aa71d4] | 223 | ln -s ../../src/riscos/stdh/regnames alien_tmp/stdh
|
|---|
| 224 | ln -s ../../src/riscos/stdh/swinames alien_tmp/stdh
|
|---|
| [242f7439] | 225 | ./zip-magic -N -j $(alien_src_zip_name) alien_tmp src/*.c src/*.h\
|
|---|
| [a33349e] | 226 | src/riscos/makefile src/borlandc/config.h
|
|---|
| [242f7439] | 227 | cd alien_tmp && ../zip-magic -N -r ../$(alien_src_zip_name) *
|
|---|
| [2eaaa3d] | 228 | $(RM) -rf alien_tmp
|
|---|
| 229 |
|
|---|
| [242f7439] | 230 | dos_doc_zip_name = svxdoc-doswin-@VERSION@.zip
|
|---|
| [15d03ab] | 231 | dos_doc_exe_name = svxdoc-doswin-@VERSION@.exe
|
|---|
| [e68fccf] | 232 |
|
|---|
| 233 | dos_doc_exe : dos_doc_zip
|
|---|
| 234 | $(RM) $(dos_doc_exe_name)~
|
|---|
| 235 | cat dos_extras/unzipsfx.exe $(dos_doc_zip_name) > $(dos_doc_exe_name)~
|
|---|
| 236 | zip -A $(dos_doc_exe_name)~
|
|---|
| 237 | mv $(dos_doc_exe_name)~ $(dos_doc_exe_name)
|
|---|
| [242f7439] | 238 |
|
|---|
| [2eaaa3d] | 239 | dos_doc_zip :
|
|---|
| [242f7439] | 240 | $(RM) $(dos_doc_zip_name)
|
|---|
| [87681b8] | 241 | : # -l means convert LF to CR+LF
|
|---|
| [8840529] | 242 | cd doc && zip -9 -l ../$(dos_doc_zip_name) @DOCS_OTHER@
|
|---|
| [242f7439] | 243 |
|
|---|
| 244 | riscos_doc_zip_name = svxdoc-riscos-@VERSION@.zip
|
|---|
| [2eaaa3d] | 245 |
|
|---|
| 246 | riscos_doc_zip :
|
|---|
| [242f7439] | 247 | $(RM) $(riscos_doc_zip_name)
|
|---|
| [2eaaa3d] | 248 | $(RM) -rf riscos_doc_tmp
|
|---|
| 249 | mkdir riscos_doc_tmp
|
|---|
| [f6a3719] | 250 | cd doc && for f in @DOCS_OTHER@ ; do\
|
|---|
| [2eaaa3d] | 251 | if test -d $$f ; then\
|
|---|
| 252 | mkdir ../riscos_doc_tmp/$$f ;\
|
|---|
| 253 | else\
|
|---|
| 254 | case "$$f" in\
|
|---|
| [bcd7eb8] | 255 | */*.htm|*/*.html) ln -s ../../doc/$$f ../riscos_doc_tmp/$$f,faf ;;\
|
|---|
| [404e6f62] | 256 | *.htm|*.html) ln -s ../doc/$$f ../riscos_doc_tmp/$$f,faf ;;\
|
|---|
| [2eaaa3d] | 257 | *.txt) ln -s ../doc/$$f ../riscos_doc_tmp/$$f,fff ;;\
|
|---|
| 258 | *.rtf) ln -s ../doc/$$f ../riscos_doc_tmp/$$f,c32 ;;\
|
|---|
| [b985330] | 259 | *.ps) ln -s ../doc/$$f ../riscos_doc_tmp/$$f,ff5 ;;\
|
|---|
| [2eaaa3d] | 260 | *) ln -s ../doc/$$f ../riscos_doc_tmp/$$f,ffd ;;\
|
|---|
| 261 | esac;\
|
|---|
| [49a9b3f] | 262 | fi;\
|
|---|
| [2eaaa3d] | 263 | done
|
|---|
| [242f7439] | 264 | cd riscos_doc_tmp && ../zip-magic -N -r ../$(riscos_doc_zip_name) *
|
|---|
| [2eaaa3d] | 265 | $(RM) -rf riscos_doc_tmp
|
|---|