3
ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
5
build: build-stamp debian/templates.gen
8
ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
15
debian/templates.gen: debian/templates-arch
16
debian/templates-build.pl $(ARCH) < $< > $@
17
# give the new templates file the same mtime as the input file, so
18
# that po2debconf doesn't decide that it needs to run
26
dh_clean debian/templates.gen
29
$(MAKE) -C kernel test
36
dh_install library.sh usr/lib/base-installer
37
dh_installdirs usr/lib/finish-install.d
38
install -m755 finish-install debian/base-installer/usr/lib/finish-install.d/90base-installer
40
dh_installdebconf -i -n
49
binary-arch: build test
53
dh_install -p bootstrap-base run-debootstrap usr/sbin
54
dh_install -p bootstrap-base pkgdetails usr/lib/debootstrap
55
if [ -e "kernel/$(ARCH).sh" ]; then \
56
dh_installdirs -p bootstrap-base usr/lib/base-installer; \
57
install -m644 "kernel/$(ARCH).sh" \
58
debian/bootstrap-base/usr/lib/base-installer/kernel.sh; \
61
dh_install -p bootstrap-base dmi-available-memory usr/lib/base-installer
64
dh_installdebconf -a -n
65
(echo ; cat debian/templates.gen) >> debian/bootstrap-base/DEBIAN/templates
66
cp debian/bootstrap-base.isinstallable debian/bootstrap-base/DEBIAN/isinstallable
75
binary: binary-indep binary-arch
76
.PHONY: clean binary-indep binary-arch binary install