Make a seperate busybox-doc package
[oweals/busybox.git] / debian / rules
1 #!/usr/bin/make -f
2
3 export DH_VERBOSE=1
4 export DH_COMPAT=3
5
6 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
7         CFLAGS += -g
8 endif
9 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
10         INSTALL_PROGRAM += -s
11 endif
12
13 binary-indep:
14
15 busybox-deb:
16         dh_testdir
17         dh_testroot
18         $(MAKE) clean
19         cp ./debian/config-deb .config
20         $(MAKE) dep
21         $(MAKE)
22         install -D busybox ./debian/busybox/bin/busybox
23         dh_installchangelogs Changelog -pbusybox
24         dh_installdocs -pbusybox
25         dh_strip -pbusybox
26         dh_compress -pbusybox
27         dh_fixperms -pbusybox
28         dh_installdeb -pbusybox
29         dh_shlibdeps -pbusybox
30         dh_gencontrol -pbusybox
31         dh_md5sums -pbusybox
32         dh_builddeb -pbusybox
33                                                                                 
34 busybox-udeb:
35         dh_testdir
36         dh_testroot
37         $(MAKE) clean
38         cp ./debian/config-udeb .config
39         $(MAKE) dep
40         $(MAKE)
41         install -D busybox ./debian/busybox-udeb/bin/busybox
42         dh_installchangelogs Changelog -pbusybox-udeb
43         dh_strip -pbusybox-udeb
44         dh_compress -pbusybox-udeb
45         dh_fixperms -pbusybox-udeb
46         dh_installdeb -pbusybox-udeb
47         dh_shlibdeps -pbusybox-udeb
48         dh_gencontrol -pbusybox-udeb
49         dh_md5sums -pbusybox-udeb
50         dh_builddeb -pbusybox-udeb
51
52
53 busybox-static:
54         dh_testdir
55         dh_testroot
56         $(MAKE) clean
57         cp ./debian/config-static .config
58         $(MAKE) dep
59         $(MAKE)
60         install -D busybox ./debian/busybox-static/bin/busybox
61         dh_installchangelogs Changelog -pbusybox-static
62         dh_installdocs -pbusybox-static
63         dh_strip -pbusybox-static
64         dh_compress -pbusybox-static
65         dh_fixperms -pbusybox-static
66         dh_installdeb -pbusybox-static
67         dh_shlibdeps -pbusybox-static
68         dh_gencontrol -pbusybox-static
69         dh_md5sums -pbusybox-static
70         dh_builddeb -pbusybox-static
71
72 binary-arch: busybox-deb busybox-udeb busybox-static
73
74 binary-indep:
75         dh_testdir
76         dh_testroot
77         $(MAKE) clean
78         $(MAKE) newdoc
79         dh_installdocs -pbusybox-doc
80         dh_installchangelogs Changelog -pbusybox-doc
81         dh_compress -pbusybox-doc
82         dh_fixperms -pbusybox-doc
83         dh_installdeb -pbusybox-doc
84         dh_gencontrol -pbusybox-doc
85         dh_md5sums -pbusybox-doc
86         dh_builddeb -pbusybox-doc
87
88 binary: binary-indep binary-arch
89 .PHONY: build clean binary-indep binary-arch binary install configure