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
|
#! /usr/bin/make -f
package = junior-sound
SHELL = /bin/sh
build:
$(checkdir)
clean:
$(checkdir)
$(RM) -r debian/{tmp*,files*} $(package)*
find . -name '*~' -print0 | xargs -0 rm -f
binary-indep: checkroot build
$(checkdir)
-rm -rf debian/tmp
install -d debian/tmp/DEBIAN debian/tmp/usr/share/doc/$(package)
install -m644 debian/changelog debian/tmp/usr/share/doc/$(package)
gzip -9 debian/tmp/usr/share/doc/$(package)/changelog
install -m644 debian/copyright debian/tmp/usr/share/doc/$(package)
install -m644 debian/README.Debian debian/tmp/usr/share/doc/$(package)
dpkg-gencontrol -isp
dpkg --build debian/tmp ..
binary-arch: checkroot build
$(checkdir)
define checkdir
test -f debian/rules
endef
binary: binary-indep
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot build
# Local Variables:
# mode:Makefile
|