3 # Uncomment this to turn on verbose mode.
8 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14 # Looking in which build system we are
15 BUILD_SYSTEM := $(shell lsb_release --short --id)
19 cd .. && svn co svn://svn.debian.org/debian-live/dists/trunk/live-initramfs || true
20 find . -type d -name .svn | xargs rm -rf
27 for SCRIPT in bin/* scripts/casper scripts/casper-bottom/*; \
29 sh -n $$SCRIPT || exit 1; \
32 # Setting BUILD_SYSTEM in the binary package
33 sed -i -e 's/\(BUILD_SYSTEM="\).*"/\1'$(BUILD_SYSTEM)'"/g' casper.conf
36 CFLAGS="$(CFLAGS)" $(MAKE) -C casper-md5check
46 $(MAKE) -C casper-md5check clean
57 install -m 0755 casper-md5check/casper-md5check debian/live-initramfs/usr/lib/casper
58 install -m 0644 casper.conf debian/live-initramfs/etc/casper.conf
60 binary-indep: build install
62 binary-arch: build install
65 dh_installchangelogs doc/ChangeLog
66 dh_installdocs doc/ChangeLog.casper
69 dh_installinit --no-restart-on-upgrade --no-start -- start 89 0 6 .
80 binary: binary-indep binary-arch
81 .PHONY: build clean binary-indep binary-arch binary install