| 1 |
|
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
export DEB_CFLAGS_MAINT_APPEND = -fPIE |
| 5 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -fPIE -pie |
| 6 |
|
| 7 |
UPSTREAMSTUFF = INSTALL configure aclocal.m4 install-sh ltmain.sh missing |
| 8 |
UPSTREAMSTUFF += $(shell find -iname '*.in' -o -iname '*.in.upstream' | sed 's/\.upstream//') |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ |
| 12 |
|
| 13 |
override_dh_autoreconf: |
| 14 |
|
| 15 |
for file in $(UPSTREAMSTUFF); do \ |
| 16 |
if [ -e $$file ] && [ ! -e $$file.upstream ] ; then \ |
| 17 |
cp $$file $$file.upstream ; \ |
| 18 |
fi \ |
| 19 |
done |
| 20 |
dh_autoreconf |
| 21 |
|
| 22 |
libpuzzle-build-stamp: |
| 23 |
dh_auto_build |
| 24 |
touch $@ |
| 25 |
|
| 26 |
override_dh_auto_build: |
| 27 |
pod2man --center "" --date "" --release "" --section=1 \ |
| 28 |
debian/manpages/puzzle-diff.pod -o debian/puzzle-diff.1 |
| 29 |
|
| 30 |
execute_after_dh_auto_clean: |
| 31 |
rm -f debian/puzzle-diff.1 debian/libpuzzle.3 debian/puzzle_set.3 |
| 32 |
find $(CURDIR) -name Makefile | xargs rm -f |
| 33 |
|
| 34 |
execute_after_dh_clean: |
| 35 |
|
| 36 |
for file in $(UPSTREAMSTUFF); do \ |
| 37 |
if [ -e $$file.upstream ] ; then \ |
| 38 |
rm -f $$file; \ |
| 39 |
mv $$file.upstream $$file; \ |
| 40 |
fi \ |
| 41 |
done |