1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
#!/usr/bin/make -f
#define __DEBIAN__
package=x11iraf
build: xmkmf-stamp build-libs-stamp build-apps-stamp
xmkmf-stamp:
dh_testdir
xmkmf -a
# $(MAKE) Makefiles
-mkdir lib
-mkdir include
touch xmkmf-stamp
build-libs-stamp: xmkmf-stamp
dh_testdir
$(MAKE) libs CDEBUGFLAGS="-O3 -Wall -g -fno-strength-reduce"
touch build-libs-stamp
build-apps-stamp: xmkmf-stamp
dh_testdir
$(MAKE) apps CDEBUGFLAGS="-O3 -Wall -g -fno-strength-reduce"
touch build-apps-stamp
clean:
dh_testdir
rm -f xmkmf-stamp build-libs-stamp build-apps-stamp compile.log
-$(MAKE) pristine
rm -f `find . -name "*~"`
rm -f obm/ObmW/Makefile obm/Tcl/Makefile
rm -f bin/* lib/*
rm -rf debian/tmp debian/files* core debian/substvars
binary-indep: build
binary-arch: build
dh_testdir
dh_testroot
dh_clean
dh_installdirs
# cp bin/* debian/tmp/usr/X11R6/bin
# rm debian/tmp/usr/X11R6/bin/resize
cp obmsh/obmsh debian/tmp/usr/bin/
cp obmsh/puzzle debian/tmp/usr/games/puzzle-obm
cp vximtool/vximtool debian/tmp/usr/bin/
cp xgterm/xgterm debian/tmp/usr/bin/
cp ximtool/ximtool debian/tmp/usr/bin/
cp xtapemon/xtapemon debian/tmp/usr/bin/
dh_installdocs README
cp obmsh/obmsh.man debian/tmp/usr/share/man/man1/obmsh.1
cp vximtool/vximtool.man debian/tmp/usr/share/man/man1/vximtool.1
cp xgterm/xgterm.man debian/tmp/usr/share/man/man1/xgterm.1
cp ximtool/ximtool.man debian/tmp/usr/share/man/man1/ximtool.1
cp xtapemon/xtapemon.man debian/tmp/usr/share/man/man1/xtapemon.1
dh_undocumented puzzle-obm.1
dh_installmenu
dh_installchangelogs
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean checkroot
|