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
|
#! /usr/bin/make -f
#
# Debian rules extensively rewritten by Martin Mitchell <martin@debian.org>
CFLAGS = -O2 -g -Wall -DUNIX -DNOPROTO
LDFLAGS = -s
ARCH = $(shell dpkg --print-installation-architecture)
STRIP=strip --strip-unneeded --remove-section=.note --remove-section=.comment
build:
# Builds the binary package.
make CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
touch build
clean:
# Undoes the effect of `make -f debian/rules build'.
rm -f build
rm -rf debian/tmp debian/substvars debian/files debian/*~
rm -f *.o beav core
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
test -f build || make -f debian.rules build
rm -rf debian/tmp
install -d -g root -m 755 -o root debian/tmp/usr/share/doc/beav debian/tmp/DEBIAN debian/tmp/usr/bin debian/tmp/usr/share/man/man1
install -g root -m 755 -o root beav debian/tmp/usr/bin/beav
$(STRIP) debian/tmp/usr/bin/beav
install -g root -m 644 -o root beav.1 debian/tmp/usr/share/man/man1/beav.1
gzip -9v debian/tmp/usr/share/man/man1/*
cp debian/changelog debian/tmp/usr/share/doc/beav/changelog.Debian
cp beav140.txt debian/tmp/usr/share/doc/beav
gzip -9v debian/tmp/usr/share/doc/beav/*
cp debian/copyright debian/tmp/usr/share/doc/beav
dpkg-shlibdeps debian/tmp/usr/bin/beav
dpkg-gencontrol -isp
chown -R root.root debian/tmp
chmod -R g-ws debian/tmp
dpkg --build debian/tmp ..
binary: binary-indep binary-arch
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|