8 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
9 INSTOPTS= LDFLAGS=-s INSTALL_PROGRAM='install -c -s'
11 INSTOPTS= INSTALL_PROGRAM='install -c'
16 ./configure --prefix=/usr
23 -$(MAKE) -i distclean || $(MAKE) -f Makefile.in distclean
24 -rm -rf *~ $t debian/*~ debian/files* debian/substvars*
27 binary-indep: checkroot build
29 # There are no architecture-independent files to be uploaded
30 # generated by this package. If there were any they would be
33 binary-arch: checkroot build
36 install -d $t/{DEBIAN,etc/init.d} $t/usr/{sbin,bin}
37 install -d $t/etc/userv/{override,default}.d
38 install -d $t/usr/share/doc/$(package)/examples/
39 install -d $t/var/run/$(package)/
40 install -d $t/usr/share/lintian/overrides/
41 install -m 755 debian/{postinst,prerm,postrm} $t/DEBIAN/.
42 install -m 644 debian/conffiles $t/DEBIAN/.
43 install -m 755 debian/initd $t/etc/init.d/userv
45 prefix=$t/usr etcdir=$t/etc \
46 docdir=$t/usr/share/doc/userv \
47 mandir=$t/usr/share/man \
49 cp debian/copyright $t/usr/share/doc/$(package)/.
50 cp debian/changelog $t/usr/share/doc/$(package)/changelog
51 cp README $t/usr/share/doc/$(package)/README.upstream
52 cp system.default system.override $t/usr/share/doc/$(package)/examples
53 ln -s changelog.gz $t/usr/share/doc/$(package)/changelog.Debian.gz
54 gzip -9v $t/usr/share/doc/$(package)/changelog \
55 $t/usr/share/man/man1/*.1 $t/usr/share/man/man8/*.8 \
56 $t/usr/share/doc/userv/*.ps
57 cp debian/lintian $t/usr/share/lintian/overrides/userv
58 dpkg-shlibdeps daemon client
62 chmod 700 $t/var/run/userv
66 test -f overlord.c -a -f lexer.l.m4 -a -f debian/rules
69 # Below here is fairly generic really
71 binary: binary-indep binary-arch
74 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
78 test root = "`whoami`"
80 .PHONY: binary binary-arch binary-indep clean checkroot