4
docdir = debian/tmp/usr/share/doc/$(package)
9
DEFINES = -DACORN_FTYPE_NFS -DUSE_UNSHRINK
10
INSTALL_PROGRAM = install
12
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
21
$(MAKE) -f unix/Makefile LF2="" \
22
CC="$(CC)" CF="$(CFLAGS) -I. $(DEFINES)" unzips
28
-$(MAKE) -f unix/Makefile clean
29
rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars
31
binary-indep: checkroot build
34
binary-arch: checkroot build
37
install -d debian/tmp/DEBIAN $(docdir)
38
cd debian/tmp && install -d usr/bin usr/man/man1
39
$(MAKE) -f unix/Makefile install prefix=`pwd`/debian/tmp/usr \
40
INSTALL_PROGRAM="$(INSTALL_PROGRAM)"
41
cat debian/copyright.in LICENSE > $(docdir)/copyright
42
cp debian/changelog $(docdir)/changelog.Debian
43
cp -p History.* BUGS ToDo $(docdir)
44
cd $(docdir) && gzip -9 changelog.Debian History.*
45
ln -s $(history).gz $(docdir)/changelog.gz
46
gzip -r9 debian/tmp/usr/man
47
cd debian/tmp && mv usr/man usr/share
51
md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums
52
chown -R root:root debian/tmp
53
chmod -R go=rX debian/tmp
54
dpkg --build debian/tmp ..
57
test -f $(package).c -a -f debian/rules
60
binary: binary-indep binary-arch
64
test root = "`whoami`"
66
.PHONY: binary binary-arch binary-indep clean checkroot