diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-01 02:09:19 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-01 02:09:19 +0000 |
commit | 6fc6d7fe4fb4945b44389aa34ed1174bc4defd69 (patch) | |
tree | e48d9ecf7859ceb09af8d290ee2d862ddbe31de1 /debian/rules | |
parent | 4d4ef19c76cdb93865347529e21d609ad055ecda (diff) | |
download | busybox-w32-6fc6d7fe4fb4945b44389aa34ed1174bc4defd69.tar.gz busybox-w32-6fc6d7fe4fb4945b44389aa34ed1174bc4defd69.tar.bz2 busybox-w32-6fc6d7fe4fb4945b44389aa34ed1174bc4defd69.zip |
Patch from Bastian Blank (waldi) for debian installer
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 179 |
1 files changed, 109 insertions, 70 deletions
diff --git a/debian/rules b/debian/rules index a15ddef41..5c2bcf207 100755 --- a/debian/rules +++ b/debian/rules | |||
@@ -1,90 +1,129 @@ | |||
1 | #!/usr/bin/make -f | 1 | #!/usr/bin/make -f |
2 | 2 | ||
3 | export DH_VERBOSE=1 | 3 | # Uncomment this to turn on verbose mode. |
4 | #export DH_VERBOSE=1 | ||
5 | |||
6 | # This is the debhelper compatibility version to use. | ||
4 | export DH_COMPAT=3 | 7 | export DH_COMPAT=3 |
5 | 8 | ||
6 | # These wont actually do anything yet, need to hack Rules.mak | 9 | VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2) |
10 | ARCH = $(shell dpkg --print-architecture) | ||
11 | |||
7 | ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) | 12 | ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
8 | CFLAGS += -g | 13 | DODEBUG = true |
9 | endif | 14 | endif |
10 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) | 15 | ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
11 | INSTALL_PROGRAM += -s | 16 | DODEBUG = true |
12 | endif | 17 | endif |
13 | 18 | ||
14 | busybox-deb: | 19 | build-arch: build-arch-stamp |
15 | dh_testdir | 20 | build-arch-stamp: |
16 | dh_testroot | ||
17 | $(MAKE) clean | 21 | $(MAKE) clean |
18 | cp ./debian/config-deb .config | 22 | cp ./debian/config-deb .config |
19 | cp ./debian/Rules.mak.shared Rules.mak | ||
20 | $(MAKE) dep | 23 | $(MAKE) dep |
21 | $(MAKE) | 24 | $(MAKE) DODEBUG=$(DODEBUG) |
22 | install -D busybox ./debian/busybox-unstable/bin/busybox | 25 | install busybox busybox-deb |
23 | dh_installchangelogs Changelog -pbusybox-unstable | 26 | |
24 | dh_installdocs -pbusybox-unstable | 27 | $(MAKE) clean |
25 | dh_strip -pbusybox-unstable | 28 | cp ./debian/config-static .config |
26 | dh_compress -pbusybox-unstable | 29 | $(MAKE) dep |
27 | dh_fixperms -pbusybox-unstable | 30 | $(MAKE) DOSTATIC=true DODEBUG=$(DODEBUG) |
28 | dh_installdeb -pbusybox-unstable | 31 | install busybox busybox-static |
29 | dh_shlibdeps -pbusybox-unstable | 32 | |
30 | dh_gencontrol -pbusybox-unstable | ||
31 | dh_md5sums -pbusybox-unstable | ||
32 | dh_builddeb -pbusybox-unstable | ||
33 | |||
34 | busybox-udeb: | ||
35 | dh_testdir | ||
36 | dh_testroot | ||
37 | $(MAKE) clean | 33 | $(MAKE) clean |
38 | cp ./debian/config-udeb .config | 34 | cp ./debian/config-udeb .config |
39 | cp ./debian/Rules.mak.shared Rules.mak | ||
40 | $(MAKE) dep | 35 | $(MAKE) dep |
41 | $(MAKE) | 36 | $(MAKE) DODEBUG=$(DODEBUG) |
42 | $(MAKE) PREFIX=./debian/busybox-udeb/ install | 37 | |
43 | dh_strip -pbusybox-unstable-udeb | 38 | touch build-arch-stamp |
44 | dh_compress -pbusybox-unstable-udeb | 39 | |
45 | dh_fixperms -pbusybox-unstable-udeb | 40 | build-indep: build-indep-stamp |
46 | dh_installdeb -pbusybox-unstable-udeb | 41 | build-indep-stamp: |
47 | dh_shlibdeps -pbusybox-unstable-udeb | 42 | $(MAKE) newdoc |
48 | dh_gencontrol -pbusybox-unstable-udeb | 43 | |
49 | dh_md5sums -pbusybox-unstable-udeb | 44 | touch build-indep-stamp |
50 | dh_builddeb -pbusybox-unstable-udeb | 45 | |
51 | 46 | build: build-arch build-indep | |
52 | 47 | ||
53 | busybox-static: | 48 | clean: |
54 | dh_testdir | 49 | dh_testdir |
55 | dh_testroot | 50 | dh_testroot |
56 | $(MAKE) clean | 51 | rm -f build-arch-stamp build-indep-stamp |
57 | cp ./debian/config-static .config | 52 | |
58 | cp ./debian/Rules.mak.static Rules.mak | 53 | $(MAKE) distclean |
59 | $(MAKE) dep | 54 | -rm -f busybox-deb busybox-static |
60 | $(MAKE) | 55 | |
61 | install -D busybox ./debian/busybox-unstable-static/bin/busybox | 56 | dh_clean |
62 | dh_installchangelogs Changelog -pbusybox-unstable-static | 57 | |
63 | dh_installdocs -pbusybox-unstable-static | 58 | install: build-arch |
64 | dh_strip -pbusybox-unstable-static | ||
65 | dh_compress -pbusybox-unstable-static | ||
66 | dh_fixperms -pbusybox-unstable-static | ||
67 | dh_installdeb -pbusybox-unstable-static | ||
68 | dh_shlibdeps -pbusybox-unstable-static | ||
69 | dh_gencontrol -pbusybox-unstable-static | ||
70 | dh_md5sums -pbusybox-unstable-static | ||
71 | dh_builddeb -pbusybox-unstable-static | ||
72 | |||
73 | binary-arch: busybox-deb busybox-udeb busybox-static | ||
74 | |||
75 | binary-indep: | ||
76 | dh_testdir | 59 | dh_testdir |
77 | dh_testroot | 60 | dh_testroot |
78 | $(MAKE) clean | 61 | dh_clean -k |
79 | $(MAKE) newdoc | 62 | dh_installdirs |
80 | dh_installdocs -pbusybox-unstable-doc | 63 | |
81 | dh_installchangelogs Changelog -pbusybox-unstable-doc | 64 | install busybox-deb $(CURDIR)/debian/busybox-cvs/bin/busybox |
82 | dh_compress -pbusybox-unstable-doc | 65 | install busybox-static $(CURDIR)/debian/busybox-cvs-static/bin/busybox |
83 | dh_fixperms -pbusybox-unstable-doc | 66 | $(MAKE) PREFIX=$(CURDIR)/debian/busybox-cvs-udeb install |
84 | dh_installdeb -pbusybox-unstable-doc | 67 | |
85 | dh_gencontrol -pbusybox-unstable-doc | 68 | # Build architecture-independent files here. |
86 | dh_md5sums -pbusybox-unstable-doc | 69 | # Pass -i to all debhelper commands in this target to reduce clutter. |
87 | dh_builddeb -pbusybox-unstable-doc | 70 | binary-indep: build |
71 | dh_testdir -i | ||
72 | dh_testroot -i | ||
73 | # dh_installdebconf -i | ||
74 | dh_installdocs -i | ||
75 | # dh_installexamples -i | ||
76 | # dh_installmenu -i | ||
77 | # dh_installlogrotate -i | ||
78 | # dh_installemacsen -i | ||
79 | # dh_installpam -i | ||
80 | # dh_installmime -i | ||
81 | # dh_installinit -i | ||
82 | # dh_installcron -i | ||
83 | # dh_installman -i | ||
84 | # dh_installinfo -i | ||
85 | # dh_undocumented -i | ||
86 | dh_installchangelogs Changelog -i | ||
87 | dh_link -i | ||
88 | dh_compress -i | ||
89 | dh_fixperms -i | ||
90 | dh_installdeb -i | ||
91 | # dh_perl -i | ||
92 | dh_gencontrol -i | ||
93 | dh_md5sums -i | ||
94 | dh_builddeb -i | ||
95 | |||
96 | # Build architecture-dependent files here. | ||
97 | binary-arch: build-arch install | ||
98 | dh_testdir -a | ||
99 | dh_testroot -a | ||
100 | # dh_installdebconf -a | ||
101 | dh_installdocs -a -Nbusybox-cvs-udeb | ||
102 | # dh_installexamples -a | ||
103 | # dh_installmenu -a | ||
104 | # dh_installlogrotate -a | ||
105 | # dh_installemacsen -a | ||
106 | # dh_installpam -a | ||
107 | # dh_installmime -a | ||
108 | # dh_installinit -a | ||
109 | # dh_installcron -a | ||
110 | # dh_installman -a | ||
111 | # dh_installinfo -a | ||
112 | # dh_undocumented -a | ||
113 | dh_installchangelogs Changelog -a -Nbusybox-cvs-udeb | ||
114 | dh_strip -a | ||
115 | dh_link -a | ||
116 | dh_compress -a | ||
117 | dh_fixperms -a | ||
118 | # dh_makeshlibs -a | ||
119 | dh_installdeb -a | ||
120 | # dh_perl -a | ||
121 | dh_shlibdeps -a | ||
122 | dh_gencontrol -a | ||
123 | dh_md5sums -a -Nbusybox-cvs-udeb | ||
124 | dh_builddeb -a -Nbusybox-cvs-udeb | ||
125 | dpkg-distaddfile busybox-cvs-udeb-$(VERSION)_$(ARCH).udeb debian-installer optional | ||
126 | dh_builddeb -pbusybox-cvs-udeb --filename=busybox-cvs-udeb-$(VERSION)_$(ARCH).udeb | ||
88 | 127 | ||
89 | binary: binary-indep binary-arch | 128 | binary: binary-indep binary-arch |
90 | .PHONY: build clean binary-indep binary-arch binary install configure | 129 | .PHONY: build clean binary-indep binary-arch binary install |