diff --git a/debian/rules b/debian/rules
index a8d386ca675b3f0e93b78491901a6346bb4d0717..9d2efbf5562ac7005edeb2a11e2c7aaa8fe46cbc 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
#!/usr/bin/make -f
# debian/rules for liboping
#
-# Written by Sebastian Harl <sh@tokkee.org>
+# Written by Sebastian Harl <tokkee@debian.org>
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
CFLAGS += -O2
endif
-include /usr/share/dpatch/dpatch.make
-
# $srcver-$perlver-$debrev
LIBPERL_VERSION := $(shell pm_ver=`perl -MExtUtils::MM -e \
'print MM->parse_version("bindings/perl/lib/Net/Oping.pm");'`; \
pkg_ver=`dpkg-parsechangelog | egrep '^Version:' | cut -d' ' -f2`; \
echo -n "$${pkg_ver%-*}-$$pm_ver-$${pkg_ver\#\#*-}")
-config.status: configure $(DPATCH_STAMPFN)
+config.status: configure
dh_testdir
for file in config.guess config.sub; do \
ln -s /usr/share/misc/$$file .; \
done
- CFLAGS="$(CFLAGS)" ./configure \
+ ./configure \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
- --with-perl-bindings="INSTALLDIRS=vendor"
+ --with-perl-bindings="INSTALLDIRS=vendor" \
+ CFLAGS="$(CFLAGS)"
build: build-stamp
touch build-stamp
-clean: unpatch
+clean:
dh_testdir
dh_testroot
rm -f build-stamp
done
dh_clean
+
+ # force a rebuild of the manpages
+ rm -f src/mans/*.3 src/mans/*.8
install: build
dh_testdir