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 52 53 54 55 56 57
|
#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall
RECONF_ITEMS=\
INSTALL \
Makefile.in \
aclocal.m4 \
build-aux/compile \
build-aux/depcomp \
build-aux/install-sh \
build-aux/mdate-sh \
build-aux/missing \
build-aux/test-driver \
build-aux/texinfo.tex \
configure \
doc/Makefile.in \
doc/gzip.info \
doc/stamp-vti \
doc/version.texi \
lib/Makefile.in \
lib/config.hin \
tests/Makefile.in
%:
dh $@
override_dh_auto_configure:
CONFIG_SHELL=/bin/sh \
GREP=grep \
dh_auto_configure
override_dh_auto_clean:
if [ -f Makefile ]; then \
dh_auto_clean; \
fi
execute_before_dh_autoreconf:
mkdir "debian/reconf-items"
for item in $(RECONF_ITEMS) ; do \
save_as=`echo $${item} | tr / -`; \
cp -an "$${item}" "debian/reconf-items/$${save_as}"; \
done
execute_after_dh_autoreconf_clean:
for item in $(RECONF_ITEMS) ; do \
saved_as=`echo $${item} | tr / -`; \
if [ -f "debian/reconf-items/$${saved_as}" ]; then \
mv "debian/reconf-items/$${saved_as}" "$${item}"; \
fi; \
done
if [ -d "debian/reconf-items" ]; then \
rmdir "debian/reconf-items"; \
fi
|