-# only called manually by maintainer before upload.
-update-mtaconflicts:
- which grep-available > /dev/null && \
- grep-available --show-field=Package --field=Provides \
- mail-transport-agent --no-field-names \
- /var/lib/apt/lists/*Packages | grep -v exim | sort -u | \
- tr '\n' ',' | sed -e 's/,/, /g;s/, $$//' > $(DEBIAN)/mtalist
-
-# Generate README.Debian as text/html ...
-debian/README.Debian.html: debian/README.Debian.xml
- xsltproc --nonet --stringparam section.autolabel 1 \
- -o $@ \
- /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl \
- $<
-# ... and text/plain
-debian/README.Debian: debian/README.Debian.html
- chmod 755 $(DEBIAN)/lynx-dump-postprocess
- lynx -force_html -dump $< | $(DEBIAN)/lynx-dump-postprocess > $@.tmp
- mv $@.tmp $@
-
-configure: configure-stamp
-
-configure-stamp: $(addsuffix /Makefile,$(BDIRS)) unpack-configs-stamp
- dh_testdir
- # Add here commands to configure the package.
- touch $@
-
-# Build binaries for the base package, the eximon4 package, and the
-# exim4-daemon-light package.
-b-exim4-daemon-light/build-$(buildname)/exim: b-exim4-daemon-light/Makefile configure-stamp
- @echo build $(<D)
- dh_testdir
-
- rm -rf $(@D)
- mkdir -p $(<D)/Local
- cp EDITME.exim4-light $(<D)/Local/Makefile
- cp EDITME.eximon $(<D)/Local/eximon.conf
- cd $(<D) && $(MAKE) FULLECHO=''
-
-b-exim4-daemon-heavy/build-$(buildname)/exim: b-exim4-daemon-heavy/Makefile configure-stamp
- @echo build $(<D)
- dh_testdir
-
- rm -rf $(@D)
- mkdir -p $(<D)/Local
- cp EDITME.exim4-heavy $(<D)/Local/Makefile
- cd $(<D) && $(MAKE) FULLECHO=''
-
-b-exim4-daemon-custom/build-$(buildname)/exim: b-exim4-daemon-custom/Makefile configure-stamp
- @echo build $(<D)
- dh_testdir
-
- rm -rf $(@D)
- mkdir -p $(<D)/Local
- cp EDITME.exim4-custom $(<D)/Local/Makefile
- cd $(<D) && $(MAKE) FULLECHO=''
-
-build-indep: build-indep-stamp
-build-indep-stamp: debian/README.Debian
- dh_testdir
+bdir-stamp: unpack-configs-stamp
+ for i in $(daemons) ; do \
+ mkdir b-$$i && \
+ find . -mindepth 1 -maxdepth 1 \
+ -name debian -prune -o \
+ -name 'b-*' -o -print0 | \
+ xargs --no-run-if-empty --null \
+ cp -a --target-directory=b-$$i ; \
+ done