#! /usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 configure: dh_testdir clean: dh_testdir dh_auto_clean dh_clean build: configure # need to be root to make devices, so build is done in install target real-build: build dh_testdir dh_testroot dh_auto_build install: real-build dh_testdir dh_testroot dh_prep dh_installdirs # install the package into debian/debootstrap $(MAKE) install DESTDIR=$(CURDIR)/debian/debootstrap $(MAKE) install DESTDIR=$(CURDIR)/debian/debootstrap-udeb ARCHES="i386" SUITE="testing" VERSION=$(SUITE) MIRROR="http://ftp.us.debian.org/debian" binary-basedebs: dh_testdir dh_testroot $(MAKE) pkgdetails ln -s . scripts for a in $(ARCHES); do \ rm -rf chroot-dir; \ mkdir -p chroot-dir; \ DEBOOTSTRAP_DIR=. ./debootstrap --arch $$a --download-only $(SUITE) chroot-dir $(MIRROR); \ (cd chroot-dir && tar cf ../../basedebs_$(VERSION)_$$a.tar *); \ rm -rf chroot-dir; \ done rm -f scripts binary-indep: install dh_testdir dh_testroot dh_installdocs -i dh_installman -i dh_installchangelogs -i dh_link -i -rm -rf debian/debootstrap-udeb/usr/share/debootstrap/scripts/potato \ debian/debootstrap-udeb/usr/share/debootstrap/scripts/woody \ debian/debootstrap-udeb/usr/share/debootstrap/scripts/sarge \ debian/debootstrap-udeb/usr/share/debootstrap/scripts/warty \ debian/debootstrap-udeb/usr/share/debootstrap/scripts/hoary \ debian/debootstrap-udeb/usr/share/debootstrap/scripts/breezy \ debian/debootstrap-udeb/usr/share/debootstrap/scripts/dapper \ debian/debootstrap-udeb/usr/share/debootstrap/scripts/edgy \ debian/debootstrap-udeb/usr/share/debootstrap/scripts/feisty \ debian/debootstrap-udeb/usr/share/debootstrap/scripts/*.buildd \ debian/debootstrap-udeb/usr/share/debootstrap/scripts/*.fakechroot dh_compress -i dh_fixperms -i dh_installdeb -i dh_shlibdeps -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary-arch: binary: binary-indep binary-arch .PHONY: build real-build clean binary-indep binary-arch binary install configure binary-basedebs