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
|
2002-12-09 02:15:47 +05:30
|
|
|
$(MAKE) DODEBUG=$(DODEBUG)
|
2002-12-01 07:39:19 +05:30
|
|
|
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)
|
|
|
|
|
2002-12-09 02:15:47 +05:30
|
|
|
$(MAKE) docs/BusyBox.1
|
2002-12-01 07:39:19 +05:30
|
|
|
|
2002-12-09 02:15:47 +05:30
|
|
|
touch build-arch-stamp
|
2002-12-01 07:39:19 +05:30
|
|
|
|
2002-12-09 02:15:47 +05:30
|
|
|
build: build-arch
|
2002-12-01 07:39:19 +05:30
|
|
|
|
|
|
|
clean:
|
2000-12-02 01:25:04 +05:30
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2002-12-09 02:15:47 +05:30
|
|
|
rm -f build-arch-stamp build-indep-stamp debian/files~
|
2002-12-01 07:39:19 +05:30
|
|
|
|
|
|
|
$(MAKE) distclean
|
2002-12-09 02:15:47 +05:30
|
|
|
-rm -f busybox-deb busybox-static .config busybox.1
|
2002-12-01 07:39:19 +05:30
|
|
|
|
|
|
|
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
|
2002-12-09 02:15:47 +05:30
|
|
|
cp docs/BusyBox.1 busybox.1
|
2002-12-01 07:39:19 +05:30
|
|
|
|
2002-12-09 02:15:47 +05:30
|
|
|
install -m644 debian/busybox-cvs-static.override \
|
|
|
|
debian/busybox-cvs-static/usr/share/lintian/overrides/busybox-cvs-static
|
2002-12-01 07:39:19 +05:30
|
|
|
|
|
|
|
# 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
|
2002-12-09 02:15:47 +05:30
|
|
|
dh_installman -a -Nbusybox-cvs-udeb
|
2002-12-01 07:39:19 +05:30
|
|
|
# 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
|
2002-12-09 02:15:47 +05:30
|
|
|
dh_gencontrol -a -Nbusybox-cvs-udeb
|
2002-12-01 07:39:19 +05:30
|
|
|
dh_md5sums -a -Nbusybox-cvs-udeb
|
|
|
|
dh_builddeb -a -Nbusybox-cvs-udeb
|
2002-12-09 02:15:47 +05:30
|
|
|
|
|
|
|
dh_gencontrol -pbusybox-cvs-udeb -- -fdebian/files~
|
|
|
|
dpkg-distaddfile busybox-cvs-udeb_$(VERSION)_$(ARCH).udeb debian-installer standard
|
2002-12-02 01:46:01 +05:30
|
|
|
dh_builddeb -pbusybox-cvs-udeb --filename=busybox-cvs-udeb_$(VERSION)_$(ARCH).udeb
|
2002-11-26 07:46:06 +05:30
|
|
|
|
2002-12-09 02:15:47 +05:30
|
|
|
binary: binary-arch
|
2002-12-01 07:39:19 +05:30
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|