2000-06-19 14:51:34 +05:30
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2002-12-01 07:39:19 +05:30
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
# This is the debhelper compatibility version to use.
|
2002-11-23 12:44:55 +05:30
|
|
|
export DH_COMPAT=3
|
2000-06-19 14:51:34 +05:30
|
|
|
|
2002-12-01 07:39:19 +05:30
|
|
|
VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
|
|
|
|
ARCH = $(shell dpkg --print-architecture)
|
|
|
|
|
2002-11-23 12:44:55 +05:30
|
|
|
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
2002-12-01 07:39:19 +05:30
|
|
|
DODEBUG = true
|
2002-11-23 12:44:55 +05:30
|
|
|
endif
|
2002-12-02 01:46:01 +05:30
|
|
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
2002-11-23 12:44:55 +05:30
|
|
|
endif
|
2000-06-19 14:51:34 +05:30
|
|
|
|
2002-12-01 07:39:19 +05:30
|
|
|
build-arch: build-arch-stamp
|
|
|
|
build-arch-stamp:
|
2002-11-23 12:44:55 +05:30
|
|
|
$(MAKE) clean
|
|
|
|
cp ./debian/config-deb .config
|
|
|
|
$(MAKE) dep
|
2002-12-01 07:39:19 +05:30
|
|
|
$(MAKE) DODEBUG=$(DODEBUG)
|
|
|
|
install busybox busybox-deb
|
|
|
|
|
|
|
|
$(MAKE) clean
|
|
|
|
cp ./debian/config-static .config
|
|
|
|
$(MAKE) dep
|
|
|
|
$(MAKE) DOSTATIC=true DODEBUG=$(DODEBUG)
|
|
|
|
install busybox busybox-static
|
|
|
|
|
2002-11-23 12:44:55 +05:30
|
|
|
$(MAKE) clean
|
|
|
|
cp ./debian/config-udeb .config
|
|
|
|
$(MAKE) dep
|
2002-12-01 07:39:19 +05:30
|
|
|
$(MAKE) DODEBUG=$(DODEBUG)
|
|
|
|
|
|
|
|
touch build-arch-stamp
|
|
|
|
|
|
|
|
build-indep: build-indep-stamp
|
|
|
|
build-indep-stamp:
|
|
|
|
$(MAKE) newdoc
|
|
|
|
|
|
|
|
touch build-indep-stamp
|
|
|
|
|
|
|
|
build: build-arch build-indep
|
|
|
|
|
|
|
|
clean:
|
2000-12-02 01:25:04 +05:30
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2002-12-01 07:39:19 +05:30
|
|
|
rm -f build-arch-stamp build-indep-stamp
|
|
|
|
|
|
|
|
$(MAKE) distclean
|
|
|
|
-rm -f busybox-deb busybox-static
|
|
|
|
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: build-arch
|
2002-11-26 07:46:06 +05:30
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2002-12-01 07:39:19 +05:30
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
|
|
|
install busybox-deb $(CURDIR)/debian/busybox-cvs/bin/busybox
|
|
|
|
install busybox-static $(CURDIR)/debian/busybox-cvs-static/bin/busybox
|
|
|
|
$(MAKE) PREFIX=$(CURDIR)/debian/busybox-cvs-udeb install
|
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
# Pass -i to all debhelper commands in this target to reduce clutter.
|
|
|
|
binary-indep: build
|
|
|
|
dh_testdir -i
|
|
|
|
dh_testroot -i
|
|
|
|
# dh_installdebconf -i
|
|
|
|
dh_installdocs -i
|
|
|
|
# dh_installexamples -i
|
|
|
|
# dh_installmenu -i
|
|
|
|
# dh_installlogrotate -i
|
|
|
|
# dh_installemacsen -i
|
|
|
|
# dh_installpam -i
|
|
|
|
# dh_installmime -i
|
|
|
|
# dh_installinit -i
|
|
|
|
# dh_installcron -i
|
|
|
|
# dh_installman -i
|
|
|
|
# dh_installinfo -i
|
|
|
|
# dh_undocumented -i
|
|
|
|
dh_installchangelogs Changelog -i
|
|
|
|
dh_link -i
|
|
|
|
dh_compress -i
|
|
|
|
dh_fixperms -i
|
|
|
|
dh_installdeb -i
|
|
|
|
# dh_perl -i
|
|
|
|
dh_gencontrol -i
|
|
|
|
dh_md5sums -i
|
|
|
|
dh_builddeb -i
|
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build-arch install
|
|
|
|
dh_testdir -a
|
|
|
|
dh_testroot -a
|
|
|
|
# dh_installdebconf -a
|
|
|
|
dh_installdocs -a -Nbusybox-cvs-udeb
|
|
|
|
# dh_installexamples -a
|
|
|
|
# dh_installmenu -a
|
|
|
|
# dh_installlogrotate -a
|
|
|
|
# dh_installemacsen -a
|
|
|
|
# dh_installpam -a
|
|
|
|
# dh_installmime -a
|
|
|
|
# dh_installinit -a
|
|
|
|
# dh_installcron -a
|
|
|
|
# dh_installman -a
|
|
|
|
# dh_installinfo -a
|
|
|
|
# dh_undocumented -a
|
|
|
|
dh_installchangelogs Changelog -a -Nbusybox-cvs-udeb
|
|
|
|
dh_strip -a
|
|
|
|
dh_link -a
|
|
|
|
dh_compress -a
|
|
|
|
dh_fixperms -a
|
|
|
|
# dh_makeshlibs -a
|
|
|
|
dh_installdeb -a
|
|
|
|
# dh_perl -a
|
|
|
|
dh_shlibdeps -a
|
|
|
|
dh_gencontrol -a
|
|
|
|
dh_md5sums -a -Nbusybox-cvs-udeb
|
|
|
|
dh_builddeb -a -Nbusybox-cvs-udeb
|
2002-12-02 01:46:01 +05:30
|
|
|
dpkg-distaddfile busybox-cvs-udeb_$(VERSION)_$(ARCH).udeb debian-installer optional
|
|
|
|
dh_builddeb -pbusybox-cvs-udeb --filename=busybox-cvs-udeb_$(VERSION)_$(ARCH).udeb
|
2002-11-26 07:46:06 +05:30
|
|
|
|
2000-06-19 14:51:34 +05:30
|
|
|
binary: binary-indep binary-arch
|
2002-12-01 07:39:19 +05:30
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|