2000-06-19 09:21:34 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2002-11-23 07:14:55 +00:00
|
|
|
export DH_VERBOSE=1
|
|
|
|
export DH_COMPAT=3
|
2000-06-19 09:21:34 +00:00
|
|
|
|
2002-11-23 07:14:55 +00:00
|
|
|
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
|
|
|
CFLAGS += -g
|
|
|
|
endif
|
|
|
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
|
|
|
INSTALL_PROGRAM += -s
|
|
|
|
endif
|
2000-06-19 09:21:34 +00:00
|
|
|
|
|
|
|
binary-indep:
|
|
|
|
|
2002-11-23 07:14:55 +00:00
|
|
|
busybox-deb:
|
2000-06-19 09:21:34 +00:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2002-11-23 07:14:55 +00:00
|
|
|
$(MAKE) clean
|
|
|
|
cp ./debian/config-deb .config
|
2002-11-26 03:08:31 +00:00
|
|
|
cp ./debian/Rules.mak.shared Rules.mak
|
2002-11-23 07:14:55 +00:00
|
|
|
$(MAKE) dep
|
|
|
|
$(MAKE)
|
|
|
|
install -D busybox ./debian/busybox/bin/busybox
|
|
|
|
dh_installchangelogs Changelog -pbusybox
|
2002-11-26 02:16:06 +00:00
|
|
|
dh_installdocs -pbusybox
|
2002-11-23 07:14:55 +00:00
|
|
|
dh_strip -pbusybox
|
|
|
|
dh_compress -pbusybox
|
|
|
|
dh_fixperms -pbusybox
|
|
|
|
dh_installdeb -pbusybox
|
|
|
|
dh_shlibdeps -pbusybox
|
|
|
|
dh_gencontrol -pbusybox
|
|
|
|
dh_md5sums -pbusybox
|
|
|
|
dh_builddeb -pbusybox
|
|
|
|
|
|
|
|
busybox-udeb:
|
2000-06-19 09:21:34 +00:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2002-11-23 07:14:55 +00:00
|
|
|
$(MAKE) clean
|
|
|
|
cp ./debian/config-udeb .config
|
2002-11-26 03:08:31 +00:00
|
|
|
cp ./debian/Rules.mak.shared Rules.mak
|
2002-11-23 07:14:55 +00:00
|
|
|
$(MAKE) dep
|
|
|
|
$(MAKE)
|
|
|
|
install -D busybox ./debian/busybox-udeb/bin/busybox
|
|
|
|
dh_installchangelogs Changelog -pbusybox-udeb
|
|
|
|
dh_strip -pbusybox-udeb
|
|
|
|
dh_compress -pbusybox-udeb
|
|
|
|
dh_fixperms -pbusybox-udeb
|
|
|
|
dh_installdeb -pbusybox-udeb
|
|
|
|
dh_shlibdeps -pbusybox-udeb
|
|
|
|
dh_gencontrol -pbusybox-udeb
|
|
|
|
dh_md5sums -pbusybox-udeb
|
|
|
|
dh_builddeb -pbusybox-udeb
|
|
|
|
|
|
|
|
|
|
|
|
busybox-static:
|
2000-12-01 19:55:04 +00:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2002-11-23 07:14:55 +00:00
|
|
|
$(MAKE) clean
|
|
|
|
cp ./debian/config-static .config
|
2002-11-26 03:08:31 +00:00
|
|
|
cp ./debian/Rules.mak.static Rules.mak
|
2002-11-23 07:14:55 +00:00
|
|
|
$(MAKE) dep
|
|
|
|
$(MAKE)
|
|
|
|
install -D busybox ./debian/busybox-static/bin/busybox
|
|
|
|
dh_installchangelogs Changelog -pbusybox-static
|
2002-11-26 02:16:06 +00:00
|
|
|
dh_installdocs -pbusybox-static
|
2002-11-23 07:14:55 +00:00
|
|
|
dh_strip -pbusybox-static
|
|
|
|
dh_compress -pbusybox-static
|
|
|
|
dh_fixperms -pbusybox-static
|
|
|
|
dh_installdeb -pbusybox-static
|
|
|
|
dh_shlibdeps -pbusybox-static
|
|
|
|
dh_gencontrol -pbusybox-static
|
|
|
|
dh_md5sums -pbusybox-static
|
|
|
|
dh_builddeb -pbusybox-static
|
|
|
|
|
|
|
|
binary-arch: busybox-deb busybox-udeb busybox-static
|
2000-12-01 19:55:04 +00:00
|
|
|
|
2002-11-26 02:16:06 +00:00
|
|
|
binary-indep:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
$(MAKE) clean
|
|
|
|
$(MAKE) newdoc
|
|
|
|
dh_installdocs -pbusybox-doc
|
|
|
|
dh_installchangelogs Changelog -pbusybox-doc
|
|
|
|
dh_compress -pbusybox-doc
|
|
|
|
dh_fixperms -pbusybox-doc
|
|
|
|
dh_installdeb -pbusybox-doc
|
|
|
|
dh_gencontrol -pbusybox-doc
|
|
|
|
dh_md5sums -pbusybox-doc
|
|
|
|
dh_builddeb -pbusybox-doc
|
|
|
|
|
2000-06-19 09:21:34 +00:00
|
|
|
binary: binary-indep binary-arch
|
2002-11-23 07:14:55 +00:00
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|