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
|
#!/usr/bin/make -f
#
# debian/rules file for package ultra
#
# Copyright 1998, Martin Soto <masoto@uniandes.edu.co>
#
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
# Package name.
package=ultra
# Major kernel version number (from modutils).
kernel_version=2.0.30
# Module package name.
ultramod=ultra-mod$(kernel_version)
# Generate the control file out from the template. The idea is to
# put the real kernel version number inside the file.
debian/control: debian/control.tmpl
sed 's/#KERNELVERSION#/'$(kernel_version)'/g' $< > $@
# shlibs.local is just a copy of the main shlibs file.
debian/shlibs.local: debian/shlibs
cp -f debian/shlibs debian/shlibs.local
# The module package postinst and postrm scripts are just copied to the
# right names from a couple of generic scripts.
debian/$(ultramod).postinst: debian/ultra-mod.postinst
cp -f debian/ultra-mod.postinst debian/$(ultramod).postinst
debian/$(ultramod).postrm: debian/ultra-mod.postrm
cp -f debian/ultra-mod.postrm debian/$(ultramod).postrm
build: debian/control
dh_testdir
./configure
(echo; echo) | make compile ARCH_COPTS=-O2
touch build
clean: debian/control
dh_testdir
dh_clean build debian/shlibs.local .config .files debian/conffiles \
debian/$(ultramod).postinst debian/$(ultramod).postrm
-make clean
-rm -f `find . -name "*~"`
install: build debian/control
dh_testdir
dh_testroot
dh_clean
install -d debian/tmp debian/tmp/etc \
debian/$(ultramod) \
debian/ultra-utils debian/ultra-utils/usr
(echo; echo) | make install U_TOP_DIR=`pwd`/debian/tmp
mv debian/tmp/lib debian/$(ultramod)
mv debian/tmp/usr/bin debian/ultra-utils/usr
# debian/conffiles is generated from here out of the contents of etc.
find debian/tmp/etc/ -type f | \
sed 's%^debian/tmp%%' > debian/conffiles
binary-indep: install
# There are no architecture-independent files to be uploaded
# generated by this package. If there were any they would be
# made here.
binary-arch: install debian/control debian/shlibs.local \
debian/$(ultramod).postinst debian/$(ultramod).postrm
dh_testroot
dh_testversion 0.50
dh_installdocs README doc/FAQ doc/KNOWN-BUGS doc/SPONSORS \
doc/DRIVER.README examples doc/InterWave-Mixer.txt
dh_installdocs -p ultra-utils doc/MUSSERVER.README \
doc/ULTRAMIDI.README doc/ULTRAMOD.README doc/XGUSMIX.README \
src/musserver/README
dh_installmenu
# dh_installmanpages
dh_undocumented gusd.8 gusdevs.8 insgus.8
dh_undocumented -p ultra-utils gusmix.1 ultramod.1 ultrarec.1 \
musserver.1 ultramidi.1 ultraplay.1 xgusmix.1
dh_installchangelogs CHANGELOG
cp -a src/musserver/ChangeLog debian/ultra-utils/usr/doc/ultra-utils/ChangeLog.musserver
gzip -9 debian/ultra-utils/usr/doc/ultra-utils/ChangeLog.musserver
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# Below here is fairly generic really
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean install
# Local variables:
# mode: Makefile
# End:
|