m4_define([build], [.PHONY: [build]
[build]:
m4_syscmd([test -f ../configure || test -f ../config.status])m4_dnl
-m4_ifelse(m4_sysval,0,[ ./configure ${CONFIGURE} ${CONFIGURE_EXTRA}
+m4_ifelse(m4_sysval,0,[ if test -f config.status; then \
+ ./config.status; else\
+ ./configure ${CONFIGURE} ${CONFIGURE_EXTRA}; fi
])m4_dnl
$(MAKE) prefix=/usr])m4_dnl
cp debian/changelog \
debian/$1/usr/share/doc/$1/changelog.Debian
gzip -9 debian/$1/usr/share/doc/$1/changelog.Debian
+ @for f in preinst postinst prerm postrm conffiles templates config; do\
+ if test -e debian/$$f.$1; then\
+ echo cp debian/$$f.$1 debian/$1/DEBIAN/$$f; \
+ cp debian/$$f.$1 debian/$1/DEBIAN/$$f; \
+ fi;\
+ done
$2 dpkg-gencontrol -isp -p$1 -Pdebian/$1 -Tdebian/substvars.$1
chown -R root:root debian/$1
chmod -R g-ws debian/$1