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) DODEBUG=$(DODEBUG)
30 install busybox busybox-static
33 cp ./debian/config-udeb .config
35 $(MAKE) DODEBUG=$(DODEBUG)
37 $(MAKE) docs/BusyBox.1
39 touch build-arch-stamp
46 rm -f build-arch-stamp build-indep-stamp debian/files~
49 -rm -f busybox-deb busybox-static .config busybox.1
59 install busybox-deb $(CURDIR)/debian/busybox-cvs/bin/busybox
60 install busybox-static $(CURDIR)/debian/busybox-cvs-static/bin/busybox
61 $(MAKE) PREFIX=$(CURDIR)/debian/busybox-cvs-udeb install
62 cp docs/BusyBox.1 busybox.1
64 install -m644 debian/busybox-cvs-static.override \
65 debian/busybox-cvs-static/usr/share/lintian/overrides/busybox-cvs-static
67 # Build architecture-dependent files here.
68 binary-arch: build-arch install
71 # dh_installdebconf -a
72 dh_installdocs -a -Nbusybox-cvs-udeb
73 # dh_installexamples -a
75 # dh_installlogrotate -a
76 # dh_installemacsen -a
81 dh_installman -a -Nbusybox-cvs-udeb
84 dh_installchangelogs Changelog -a -Nbusybox-cvs-udeb
93 dh_gencontrol -a -Nbusybox-cvs-udeb
94 dh_md5sums -a -Nbusybox-cvs-udeb
95 dh_builddeb -a -Nbusybox-cvs-udeb
97 dh_gencontrol -pbusybox-cvs-udeb -- -fdebian/files~
98 dpkg-distaddfile busybox-cvs-udeb_$(VERSION)_$(ARCH).udeb debian-installer standard
99 dh_builddeb -pbusybox-cvs-udeb --filename=busybox-cvs-udeb_$(VERSION)_$(ARCH).udeb
102 .PHONY: build clean binary-indep binary-arch binary install