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
|
#!/usr/bin/make -f
# Rules file for cdrdao copyright 1998 Martin Mitchell
# This file is placed under the GNU GPL.
package=cdrdao
STRIP=strip
build:
$(checkdir)
./configure --prefix=/usr --with-pcctsbin=/usr/bin --with-pcctsinc=/usr/include/pccts
$(MAKE)
touch build
clean:
$(checkdir)
-rm -f build
-$(MAKE) distclean
-rm `find . -name "*~"`
-rm -rf debian/tmp debian/files* debian/substvars
binary-indep: checkroot build
$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package. If there were any they would be
# made here.
binary-arch: checkroot build
$(checkdir)
-rm -rf debian/tmp
install -d debian/tmp/DEBIAN debian/tmp/usr/bin debian/tmp/usr/doc/$(package) debian/tmp/usr/man/man1
$(MAKE) install prefix=`pwd`/debian/tmp/usr
$(STRIP) debian/tmp/usr/bin/$(package)
gzip -9v debian/tmp/usr/man/man1/*
install -m 0644 README debian/tmp/usr/doc/$(package)
install -m 0644 debian/changelog debian/tmp/usr/doc/$(package)/changelog.Debian
gzip -9v debian/tmp/usr/doc/$(package)/*
install -m 0644 debian/copyright debian/tmp/usr/doc/$(package)
dpkg-shlibdeps debian/tmp/usr/bin/$(package)
dpkg-gencontrol
chown -R root.root debian/tmp
chmod -R g-ws debian/tmp
dpkg --build debian/tmp ..
define checkdir
test -f $(package).lsm -a -f debian/rules
endef
binary: binary-indep binary-arch
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|