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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independent
# package.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
ACE = --with-ace=/usr/include --with-ace-libs=/usr/lib
DOCS = VERSION CHANGES CHANGES-0.4 CHANGES-0.5 CHANGES-0.6 README COPYRIGHT.proposed
build: build-stamp
build-stamp:
dh_testdir
./configure --x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib --prefix=`pwd`/debian/tmp/usr/X11R6 \
$(ACE)
# Compile the packages
make Makefile ARCH=LINUX
make Makefiles ARCH=LINUX
make ARCH=LINUX
# reconfigure for the devel package
./configure --x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib --prefix=/usr/X11R6
cd src/scripts && make ARCH=LINUX clean && make ARCH=LINUX CONFIGDIRSPEC='-T template -I/usr/X11R6/lib/ivtools/config -DCURDIR=\`pwd\`'\
MAKEMAKESPEC='ARCH=LINUX'
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp install-stamp
# Add here commands to clean up after the build process.
#-$(MAKE) clean
#-$(MAKE) distclean
-rm -r `find . -name LINUX`
-rm `find src -name Makefile`
-rm config/InterViews/Makefile config/Makefile config.status
-rm *.log
-rm config.cache
-rm -rf static shared
-make ARCH=LINUX clean
-(cd src/scripts;make clean)
# remove backups
-rm -f `find . -name "*~"`
# remove all Debian leftovers
-rm -rf debian/tmp `find debian/* -type d` debian/files* core
-rm -f debian/*substvars
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tmp.
make install ARCH=LINUX DESTDIR=`pwd`/debian/tmp
# ln -s ivtools-interviews `pwd`/debian/tmp/usr/doc/ivtools-dev
ln -s ivtools-interviews `pwd`/debian/tmp/usr/share/doc/ivtools-bin
ln -s ivtools-interviews `pwd`/debian/tmp/usr/share/doc/ivtools-unidraw
cp debian/template `pwd`/debian/tmp/usr/X11R6/lib/ivtools/config/
-(cd src/glyphs && make clean)
# don't include the scripts
# Documentation
# install -d `pwd`/debian/tmp/usr/doc/ivtools-doc
# cp src/man/refman3.1/refman.PS `pwd`/debian/tmp/usr/doc/ivtools-dev/
dh_movefiles
#
# remove the directories that are installed into /usr/X11R6/include
#
-rm -r `pwd`/debian/tmp/usr/X11R6/include
#
# ivtools installs the libACE link, we remove it ... hack
#
-rm `pwd`/debian/ivtools-dev/usr/X11R6/lib/libACE.so
touch install-stamp
# Build architecture-independent files here.
binary-indep: build install
# dh_testversion
dh_testdir -i
dh_testroot -i
dh_installdocs -p ivtools-dev src/man/refman3.1/refman.PS
dh_installexamples -p ivtools-dev
# dh_installmenu -i
# dh_installemacsen -i
# dh_installinit -i
# dh_installcron -i
# dh_installmanpages -i
# dh_undocumented
dh_installchangelogs -p ivtools-dev
dh_compress -i
dh_fixperms -i
dh_suidregister -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch: build install
# dh_testversion
dh_testdir -a
dh_testroot -a
dh_installdocs -p ivtools-interviews $(DOCS)
# dh_installexamples -a
dh_installmenu ivtools-bin
# dh_installemacsen -a
# dh_installinit -a
# dh_installcron -a
# dh_installmanpages -p ivtools-bin
# dh_undocumented
dh_installchangelogs -p ivtools-interviews
dh_installmime -a
dh_strip -a
dh_compress -a
dh_fixperms -a
# dh_suidregister -a
dh_installdeb -a
dh_makeshlibs -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|