3 # This is a bit unusual, in that I have to completely recompile everything
4 # twice. The first is the normal, dynamically linked package. The second is
5 # for the statically linked package. This file has been adjusted accordingly.
7 # This is the debhelper compatability version to use.
11 bbs=debian/busybox-static
16 rm -f build-stamp-busybox build-stamp-busybox-static
24 rm -rf $(bbs) build-stamp-busybox-static
27 build: build-stamp-busybox
31 touch build-stamp-busybox
38 $(MAKE) "PREFIX=$(bb)" install
39 mkdir -p $(bb)/usr/share/man/man1
40 cp docs/BusyBox.1 $(bb)/usr/share/man/man1/busybox.1
42 # Now for the statically linked stuff
43 build-static: build-stamp-busybox-static
44 build-stamp-busybox-static:
47 touch build-stamp-busybox-static
54 # Do not run 'make install', since we do not want all the symlinks.
55 # This just installes the busybox binary...
56 #$(MAKE) "PREFIX=$(bbs)" install
58 cp busybox $(bbs)/bin/busybox
59 mkdir -p $(bbs)/usr/share/man/man1/
60 cp docs/BusyBox.1 $(bbs)/usr/share/man/man1/busybox.1
62 do_static: half_clean build-static install-static
65 # Build architecture-independent files here.
67 # We have nothing to do by default.
69 # Build architecture-dependent files here.
70 binary-arch: busybox busybox-static
73 @echo "--- Building: $@"
78 #Note that for busybox, we do not install any docs,
79 # or man apges or anything else. This is in blatent violation of every
80 # Debian policy out there, since this package is intended to be used
81 # _only_ by the debian-installer.
83 #dh_installdocs -p$@ docs/BusyBox.txt \
84 # docs/BusyBox.html docs/busybox.lineo.com AUTHORS README TODO
85 #rm -rf $(bb)/usr/share/doc/busybox/busybox.lineo.com/CVS \
86 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/.cvsignore \
87 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/CVS \
88 # $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/.cvsignore
90 dh_installchangelogs -p$@ Changelog
97 #Make _very_ sure there are no docs lurking about.
99 rm -rf $(bb)/usr/share/doc
100 rm -rf $(bb)/usr/share/man
106 busybox-static: do_static
107 @echo "--- Building: $@"
111 dh_installdocs -p$@ docs/BusyBox.txt \
112 docs/BusyBox.html docs/busybox.lineo.com AUTHORS README TODO
113 rm -rf $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/CVS \
114 $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/.cvsignore \
115 $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/images/CVS \
116 $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/images/.cvsignore
118 dh_installchangelogs -p$@ Changelog
129 binary: binary-indep binary-arch
130 .PHONY: build clean binary-indep binary-arch binary install