3 # Uncomment this to turn on verbose mode.
6 # This is the debhelper compatibility version to use.
9 VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
10 ARCH = $(shell dpkg --print-architecture)
12 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
15 ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
19 build-arch: build-arch-stamp
22 cp ./debian/config-deb .config
24 $(MAKE) DODEBUG=$(DODEBUG)
25 install busybox busybox-deb
28 cp ./debian/config-static .config
30 $(MAKE) DOSTATIC=true DODEBUG=$(DODEBUG)
31 install busybox busybox-static
34 cp ./debian/config-udeb .config
36 $(MAKE) DODEBUG=$(DODEBUG)
38 touch build-arch-stamp
40 build-indep: build-indep-stamp
44 touch build-indep-stamp
46 build: build-arch build-indep
51 rm -f build-arch-stamp build-indep-stamp
54 -rm -f busybox-deb busybox-static
64 install busybox-deb $(CURDIR)/debian/busybox-cvs/bin/busybox
65 install busybox-static $(CURDIR)/debian/busybox-cvs-static/bin/busybox
66 $(MAKE) PREFIX=$(CURDIR)/debian/busybox-cvs-udeb install
68 # Build architecture-independent files here.
69 # Pass -i to all debhelper commands in this target to reduce clutter.
73 # dh_installdebconf -i
75 # dh_installexamples -i
77 # dh_installlogrotate -i
78 # dh_installemacsen -i
86 dh_installchangelogs Changelog -i
96 # Build architecture-dependent files here.
97 binary-arch: build-arch install
100 # dh_installdebconf -a
101 dh_installdocs -a -Nbusybox-cvs-udeb
102 # dh_installexamples -a
104 # dh_installlogrotate -a
105 # dh_installemacsen -a
113 dh_installchangelogs Changelog -a -Nbusybox-cvs-udeb
123 dh_md5sums -a -Nbusybox-cvs-udeb
124 dh_builddeb -a -Nbusybox-cvs-udeb
125 dpkg-distaddfile busybox-cvs-udeb-$(VERSION)_$(ARCH).udeb debian-installer optional
126 dh_builddeb -pbusybox-cvs-udeb --filename=busybox-cvs-udeb-$(VERSION)_$(ARCH).udeb
128 binary: binary-indep binary-arch
129 .PHONY: build clean binary-indep binary-arch binary install