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 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
18 build-arch: build-arch-stamp
21 cp ./debian/config-deb .config
23 $(MAKE) DODEBUG=$(DODEBUG)
24 install busybox busybox-deb
27 cp ./debian/config-static .config
29 $(MAKE) DOSTATIC=true DODEBUG=$(DODEBUG)
30 install busybox busybox-static
33 cp ./debian/config-udeb .config
35 $(MAKE) DODEBUG=$(DODEBUG)
37 touch build-arch-stamp
39 build-indep: build-indep-stamp
43 touch build-indep-stamp
45 build: build-arch build-indep
50 rm -f build-arch-stamp build-indep-stamp
53 -rm -f busybox-deb busybox-static
63 install busybox-deb $(CURDIR)/debian/busybox-cvs/bin/busybox
64 install busybox-static $(CURDIR)/debian/busybox-cvs-static/bin/busybox
65 $(MAKE) PREFIX=$(CURDIR)/debian/busybox-cvs-udeb install
67 # Build architecture-independent files here.
68 # Pass -i to all debhelper commands in this target to reduce clutter.
72 # dh_installdebconf -i
74 # dh_installexamples -i
76 # dh_installlogrotate -i
77 # dh_installemacsen -i
85 dh_installchangelogs Changelog -i
95 # Build architecture-dependent files here.
96 binary-arch: build-arch install
99 # dh_installdebconf -a
100 dh_installdocs -a -Nbusybox-cvs-udeb
101 # dh_installexamples -a
103 # dh_installlogrotate -a
104 # dh_installemacsen -a
112 dh_installchangelogs Changelog -a -Nbusybox-cvs-udeb
122 dh_md5sums -a -Nbusybox-cvs-udeb
123 dh_builddeb -a -Nbusybox-cvs-udeb
124 dpkg-distaddfile busybox-cvs-udeb_$(VERSION)_$(ARCH).udeb debian-installer optional
125 dh_builddeb -pbusybox-cvs-udeb --filename=busybox-cvs-udeb_$(VERSION)_$(ARCH).udeb
127 binary: binary-indep binary-arch
128 .PHONY: build clean binary-indep binary-arch binary install