aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-12-01 19:55:04 +0000
committerEric Andersen <andersen@codepoet.org>2000-12-01 19:55:04 +0000
commite2f6e1221330f2944d467cad2fb630deb5ef6f0a (patch)
treef52409c3b56c1f2a5a54996dc2542c7941574e20 /debian/rules
parent09a34e536896ecbe3e81618c7a45f9f1998bd8aa (diff)
downloadbusybox-w32-e2f6e1221330f2944d467cad2fb630deb5ef6f0a.tar.gz
busybox-w32-e2f6e1221330f2944d467cad2fb630deb5ef6f0a.tar.bz2
busybox-w32-e2f6e1221330f2944d467cad2fb630deb5ef6f0a.zip
More pristine source directory updates. It now works
for me (including doing install). How about you? -Erik
Diffstat (limited to '')
-rwxr-xr-xdebian/rules60
1 files changed, 55 insertions, 5 deletions
diff --git a/debian/rules b/debian/rules
index ffa9b5c36..67741b19f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,14 +8,23 @@
8export DH_COMPAT=1 8export DH_COMPAT=1
9 9
10bb=debian/tmp 10bb=debian/tmp
11bbbd=debian/bb_builddir
11bbs=debian/busybox-static 12bbs=debian/busybox-static
13bbsbd=debian/bb-static_builddir
14
15#For the debian-installer .udeb package
16PACKAGE=busybox-udeb
17VERSION=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
18ARCH=$(shell dpkg --print-architecture)
19FILENAME=$(PACKAGE)_$(VERSION)_$(ARCH).udeb
20PRIORITY=$(shell grep ^Priority: debian/control | cut -d ' ' -f 2)
12 21
13clean: 22clean:
14 dh_testdir 23 dh_testdir
15 dh_testroot 24 dh_testroot
16 rm -f build-stamp-busybox build-stamp-busybox-static 25 rm -f build-stamp-busybox build-stamp-busybox-static
17 -$(MAKE) clean 26 -$(MAKE) clean
18 -rm -rf $(bb) $(bbs) 27 -rm -rf $(bb) $(bbbd) $(bbs) $(bbsbd)
19 dh_clean 28 dh_clean
20 29
21half_clean: 30half_clean:
@@ -27,7 +36,9 @@ half_clean:
27build: build-stamp-busybox 36build: build-stamp-busybox
28build-stamp-busybox: 37build-stamp-busybox:
29 dh_testdir 38 dh_testdir
30 $(MAKE) 39 mkdir -p $(bbbd)
40 cp Makefile Config.h $(bbbd)
41 (cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../")
31 touch build-stamp-busybox 42 touch build-stamp-busybox
32 43
33install: build 44install: build
@@ -35,7 +46,7 @@ install: build
35 dh_testroot 46 dh_testroot
36 dh_clean -k 47 dh_clean -k
37 dh_installdirs 48 dh_installdirs
38 $(MAKE) "PREFIX=$(bb)" install 49 (cd $(bbbd); $(MAKE) "BB_SRC_DIR=../../" "PREFIX=../../$(bb)" install)
39 mkdir -p $(bb)/usr/share/man/man1 50 mkdir -p $(bb)/usr/share/man/man1
40 cp docs/BusyBox.1 $(bb)/usr/share/man/man1/busybox.1 51 cp docs/BusyBox.1 $(bb)/usr/share/man/man1/busybox.1
41 52
@@ -67,7 +78,7 @@ binary-indep:
67# We have nothing to do by default. 78# We have nothing to do by default.
68 79
69# Build architecture-dependent files here. 80# Build architecture-dependent files here.
70binary-arch: busybox busybox-static 81binary-arch: busybox busybox-static busybox-udeb
71 82
72busybox: install 83busybox: install
73 @echo "--- Building: $@" 84 @echo "--- Building: $@"
@@ -87,7 +98,7 @@ busybox: install
87 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/CVS \ 98 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/CVS \
88 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/.cvsignore 99 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/.cvsignore
89 #dh_undocumented -p$@ 100 #dh_undocumented -p$@
90 dh_installchangelogs -p$@ Changelog 101 #dh_installchangelogs -p$@ Changelog
91 dh_strip -p$@ 102 dh_strip -p$@
92 dh_compress -p$@ 103 dh_compress -p$@
93 dh_fixperms -p$@ 104 dh_fixperms -p$@
@@ -126,5 +137,44 @@ busybox-static: do_static
126 dh_builddeb -p$@ 137 dh_builddeb -p$@
127 138
128 139
140# Note that this builds a .udeb, which is not policy compliant or anything.
141#
142busybox-udeb: install
143 @echo "--- Building: $@"
144 dh_testdir
145 dh_testroot
146 dh_installdirs
147 #
148 #Note that for busybox, we do not install any docs,
149 # or man apges or anything else. This is in blatent violation of every
150 # Debian policy out there, since this package is intended to be used
151 # _only_ by the debian-installer.
152 #
153 #dh_installdocs -p$@ docs/BusyBox.txt \
154 # docs/BusyBox.html docs/busybox.lineo.com AUTHORS README TODO
155 #rm -rf $(bb)/usr/share/doc/busybox/busybox.lineo.com/CVS \
156 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/.cvsignore \
157 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/CVS \
158 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/.cvsignore
159 #dh_undocumented -p$@
160 #dh_installchangelogs -p$@ Changelog
161 dh_strip -p$@
162 dh_compress -p$@
163 dh_fixperms -p$@
164 dh_installdeb -p$@
165 dh_shlibdeps -p$@
166 #
167 #Make _very_ sure there are no docs lurking about.
168 #
169 rm -rf $(bb)/usr/share/doc
170 rm -rf $(bb)/usr/share/man
171 dh_gencontrol -p$@
172 # Don't write your stupid guesses to debian/files.
173 #dh_gencontrol -p$@ -- -fdebian/files~
174 # Register file manually.
175 dpkg-distaddfile $(FILENAME) debian-installer $(PRIORITY)
176 dh_md5sums -p$@
177 dh_builddeb -p$@ --filename=$(FILENAME)
178
129binary: binary-indep binary-arch 179binary: binary-indep binary-arch
130.PHONY: build clean binary-indep binary-arch binary install 180.PHONY: build clean binary-indep binary-arch binary install