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
|
#!/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-independant
# package.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
#$(MAKE)
rm -f awedrv/linux; ln -sf . awedrv/linux
(cd awesfx; xmkmf); (cd awemidi; xmkmf)
$(MAKE) -C awesfx Makefiles; $(MAKE) -C awesfx all
$(MAKE) -C awemidi all
PATH=/usr/i486-linuxlibc1/bin:$$PATH $(MAKE) -C midiplg all
$(MAKE) -C vkeybd vkeybd
rm -f awedrv/linux
sed 's/href=#/href=awedrv-faq.html#/g' < awedrv-faq.html > debian/awedrv-faq.html
sed 's/href=#/href=awedrv-prog.html#/g' < awedrv-prog.html > debian/awedrv-prog.html
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
#-$(MAKE) distclean
-rm -f awedrv/linux
-$(MAKE) -C awesfx clean
-rm -f `find awesfx -name Makefile -o -name Makefile.bak`
-$(MAKE) -C awemidi clean
-rm -f `find awemidi -name Makefile -o -name Makefile.bak`
-$(MAKE) -C midiplg clean
-$(MAKE) -C vkeybd clean
-rm -f debian/awedrv-*.html
dh_clean
# Build architecture-independent files here.
binary-indep: build
# Build architecture-dependent files here.
binary-arch: build
# dh_testversion
dh_testdir -a
dh_testroot -a
dh_clean -a -k
dh_installdirs -a usr/lib/awe/sfbank usr/src/awedrv usr/man/man1 \
usr/share/doc-base
dh_installdirs -pawe-midi usr/lib/awe
dh_installdirs -pawe-netscape
dh_installdirs -pvkeybd usr/bin usr/lib/awe
dh_installdirs -plibawe0.4
dh_installdirs -plibawe0.4-dev
# Add here commands to install the files into debian/tmp
#$(MAKE) prefix=`pwd`/debian/tmp install
$(MAKE) -C awesfx DESTDIR=`pwd`/debian/tmp install install.man
$(MAKE) -C awemidi DESTDIR=`pwd`/debian/awe-midi install install.man
$(MAKE) -C midiplg DESTDIR=`pwd`/debian/awe-netscape install
$(MAKE) -C vkeybd DESTDIR=`pwd`/debian/vkeybd install
cp awesfx/bank-samples/*.bnk debian/tmp/usr/lib/awe/sfbank
cp awedrv/*.h awedrv/*.c awedrv/*.diff awedrv/install.sh \
awedrv/INSTALL.awe debian/tmp/usr/src/awedrv
mv debian/awe-midi/usr/bin/{miditext,txtplay} debian/awe-midi/usr/lib/awe
for i in sf2text text2sf gusload setfx; do \
mv debian/tmp/usr/bin/$$i debian/tmp/usr/lib/awe; done
cp debian/sfxedit debian/tmp/usr/lib/awe
chmod +x debian/tmp/usr/lib/awe/sfxedit
cp debian/*.1 debian/tmp/usr/man/man1
cp debian/doc-base debian/tmp/usr/share/doc-base/awe-drv
cp debian/doc-base.prog debian/tmp/usr/share/doc-base/awe-drv-prog
dh_movefiles -a
dh_installdocs -a awesfx/bank-samples/README-bank awedrv/README.awe \
awesfx/SBKtoSF2.txt awesfx/README awedrv-faq.txt awedrv-prog.txt \
debian/awedrv-faq.html awedrv/ChangeLog.awe debian/awedrv-prog.html
dh_installexamples -a awesfx/test.cfg awesfx/test.bnk
dh_installmenu -a
# dh_installinit -a
dh_installcron -a
# dh_installmanpages -a
dh_undocumented atmidi.1
dh_installchangelogs -a awesfx/ChangeLog.sfx
dh_strip -a
dh_compress -a
dh_fixperms -a
dh_suidregister -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
# dh_makeshlibs -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
|