1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
DEB_AUTO_UPDATE_AUTOCONF = 2.68
DEB_AUTO_UPDATE_ACLOCAL = 1.11
DEB_AUTO_UPDATE_AUTOMAKE = 1.11
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
# put aside upstream-shipped temp files during build but after copyright-check
upstreamtmpfiles = Makefile.in auxdir/Makefile.in tests/Makefile.in aclocal.m4 configure
pre-build:: debian/stamp-upstreamtmpstuff
debian/stamp-upstreamtmpstuff:
for file in $(upstreamtmpfiles); do \
[ ! -e $$file ] || [ -e $$file.upstream ] || cp -a $$file $$file.upstream; \
done
touch $@
clean::
for file in $(upstreamtmpfiles); do \
[ ! -e $$file.upstream ] || mv -f $$file.upstream $$file; \
done
rm -f debian/stamp-upstreamtmpstuff
|