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-26 09:05:15 +00:00
|
|
|
# These wont actually do anything yet, need to hack Rules.mak
|
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
|
|
|
|
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)
|
2002-11-26 09:05:15 +00:00
|
|
|
install -D busybox ./debian/busybox-unstable/bin/busybox
|
|
|
|
dh_installchangelogs Changelog -pbusybox-unstable
|
|
|
|
dh_installdocs -pbusybox-unstable
|
|
|
|
dh_strip -pbusybox-unstable
|
|
|
|
dh_compress -pbusybox-unstable
|
|
|
|
dh_fixperms -pbusybox-unstable
|
|
|
|
dh_installdeb -pbusybox-unstable
|
|
|
|
dh_shlibdeps -pbusybox-unstable
|
|
|
|
dh_gencontrol -pbusybox-unstable
|
|
|
|
dh_md5sums -pbusybox-unstable
|
|
|
|
dh_builddeb -pbusybox-unstable
|
|
|
|
|
2002-11-23 07:14:55 +00:00
|
|
|
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)
|
2002-11-27 23:24:49 +00:00
|
|
|
$(MAKE) PREFIX=./debian/busybox-udeb/ install
|
2002-11-26 09:05:15 +00:00
|
|
|
dh_strip -pbusybox-unstable-udeb
|
|
|
|
dh_compress -pbusybox-unstable-udeb
|
|
|
|
dh_fixperms -pbusybox-unstable-udeb
|
|
|
|
dh_installdeb -pbusybox-unstable-udeb
|
|
|
|
dh_shlibdeps -pbusybox-unstable-udeb
|
|
|
|
dh_gencontrol -pbusybox-unstable-udeb
|
|
|
|
dh_md5sums -pbusybox-unstable-udeb
|
|
|
|
dh_builddeb -pbusybox-unstable-udeb
|
2002-11-23 07:14:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
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)
|
2002-11-26 09:05:15 +00:00
|
|
|
install -D busybox ./debian/busybox-unstable-static/bin/busybox
|
|
|
|
dh_installchangelogs Changelog -pbusybox-unstable-static
|
|
|
|
dh_installdocs -pbusybox-unstable-static
|
|
|
|
dh_strip -pbusybox-unstable-static
|
|
|
|
dh_compress -pbusybox-unstable-static
|
|
|
|
dh_fixperms -pbusybox-unstable-static
|
|
|
|
dh_installdeb -pbusybox-unstable-static
|
|
|
|
dh_shlibdeps -pbusybox-unstable-static
|
|
|
|
dh_gencontrol -pbusybox-unstable-static
|
|
|
|
dh_md5sums -pbusybox-unstable-static
|
|
|
|
dh_builddeb -pbusybox-unstable-static
|
2002-11-23 07:14:55 +00:00
|
|
|
|
|
|
|
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
|
2002-11-26 09:05:15 +00:00
|
|
|
dh_installdocs -pbusybox-unstable-doc
|
|
|
|
dh_installchangelogs Changelog -pbusybox-unstable-doc
|
|
|
|
dh_compress -pbusybox-unstable-doc
|
|
|
|
dh_fixperms -pbusybox-unstable-doc
|
|
|
|
dh_installdeb -pbusybox-unstable-doc
|
|
|
|
dh_gencontrol -pbusybox-unstable-doc
|
|
|
|
dh_md5sums -pbusybox-unstable-doc
|
|
|
|
dh_builddeb -pbusybox-unstable-doc
|
2002-11-26 02:16:06 +00:00
|
|
|
|
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
|