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
|
#!/usr/bin/make -f
%:
dh $@
# Refresh the build system.
#
# The build system is completely regenerated to ensure the tools used to
# build the binary package are the ones shipped with Debian.
override_dh_auto_configure:
@( \
libtoolize -f -c; \
aclocal; \
autoheader -f; \
autoconf -f; \
automake -f -a -c --foreign; \
dh_auto_configure -- \
--disable-silent-rules; \
)
# Rebuild the patches series by looking at the contents of the
# debian/patches directory.
#
# Patches with names starting with D (Debian-specific) should be applied
# after those with names starting with U (to be forwarded upstream).
rebuild-patches-series:
@( \
SERIES=debian/patches/series; \
{ \
echo "# To rebuild this file, use \`debian/rules $@'"; \
for patch in debian/patches/U*.diff debian/patches/D*.diff; \
do \
test -f "$${patch}" || continue; \
patch=$$(basename "$${patch}"); \
echo "$${patch}"; \
done; \
} >"$${SERIES}"; \
)
.PHONY: rebuild-patches-series
|