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: $@"
77 dh_installdocs -p$@ docs/BusyBox.txt \
78 docs/BusyBox.html docs/busybox.lineo.com AUTHORS README TODO
79 rm -rf $(bb)/usr/share/doc/busybox/busybox.lineo.com/CVS \
80 $(bb)/usr/share/doc/busybox/busybox.lineo.com/.cvsignore \
81 $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/CVS \
82 $(bb)/usr/share/doc/busybox/busybox.lineo.com/images/.cvsignore
84 dh_installchangelogs -p$@ Changelog
95 busybox-static: do_static
96 @echo "--- Building: $@"
100 dh_installdocs -p$@ docs/BusyBox.txt \
101 docs/BusyBox.html docs/busybox.lineo.com AUTHORS README TODO
102 rm -rf $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/CVS \
103 $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/.cvsignore \
104 $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/images/CVS \
105 $(bbs)/usr/share/doc/busybox-static/busybox.lineo.com/images/.cvsignore
107 dh_installchangelogs -p$@ Changelog
118 binary: binary-indep binary-arch
119 .PHONY: build clean binary-indep binary-arch binary install