#!/usr/bin/make -f
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ cp -f /usr/share/misc/config.sub config.sub
+ cp -f /usr/share/misc/config.guess config.guess
+ EXT2FS_LIBS="-lext2fs -lcom_err" ./configure \
+ --prefix=/usr \
+ --with-ccopts="-O2 -g -Wall" \
+ --with-dumpdatespath=/var/lib/dumpdates \
+ --enable-largefile \
+ --enable-qfa \
+ --enable-staticz
+ touch configure-stamp
-build: build-stamp
+build: configure-stamp build-stamp
build-stamp:
dh_testdir
- ./configure --prefix=/usr --with-ccopts="-O2 -g -Wall" \
- --with-dumpdatespath=/var/lib/dumpdates \
- --enable-largefile --enable-qfa --enable-staticz
make
touch build-stamp
dh_testdir
dh_testroot
rm -f build-stamp
- -make distclean
- -test -r /usr/share/misc/config.sub && \
- cp -f /usr/share/misc/config.sub config.sub
- -test -r /usr/share/misc/config.guess && \
- cp -f /usr/share/misc/config.guess config.guess
+ [ ! -f Makefile ] || make distclean
dh_clean
binary-indep: build
dh_installdocs KNOWNBUGS MAINTAINERS README THANKS TODO
dh_installexamples examples/*
dh_installchangelogs CHANGES
+ dh_lintian
dh_strip
dh_compress
dh_fixperms