summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 2a0b48f24246bcbc8ba95f9fa8f570718a0c0061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/usr/bin/make -f

export DH_VERBOSE=1
export DH_COMPAT=3

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	INSTALL_PROGRAM += -s
endif

binary-indep:

busybox-deb:
	dh_testdir
	dh_testroot
	$(MAKE) clean
	cp ./debian/config-deb .config
	$(MAKE) dep
	$(MAKE)
	install -D busybox ./debian/busybox/bin/busybox
	dh_installchangelogs Changelog -pbusybox
	dh_installdocs -pbusybox
	dh_strip -pbusybox
	dh_compress -pbusybox
	dh_fixperms -pbusybox
	dh_installdeb -pbusybox
	dh_shlibdeps -pbusybox
	dh_gencontrol -pbusybox
	dh_md5sums -pbusybox
	dh_builddeb -pbusybox
										
busybox-udeb:
	dh_testdir
	dh_testroot
	$(MAKE) clean
	cp ./debian/config-udeb .config
	$(MAKE) dep
	$(MAKE)
	install -D busybox ./debian/busybox-udeb/bin/busybox
	dh_installchangelogs Changelog -pbusybox-udeb
	dh_strip -pbusybox-udeb
	dh_compress -pbusybox-udeb
	dh_fixperms -pbusybox-udeb
	dh_installdeb -pbusybox-udeb
	dh_shlibdeps -pbusybox-udeb
	dh_gencontrol -pbusybox-udeb
	dh_md5sums -pbusybox-udeb
	dh_builddeb -pbusybox-udeb


busybox-static:
	dh_testdir
	dh_testroot
	$(MAKE) clean
	cp ./debian/config-static .config
	$(MAKE) dep
	$(MAKE)
	install -D busybox ./debian/busybox-static/bin/busybox
	dh_installchangelogs Changelog -pbusybox-static
	dh_installdocs -pbusybox-static
	dh_strip -pbusybox-static
	dh_compress -pbusybox-static
	dh_fixperms -pbusybox-static
	dh_installdeb -pbusybox-static
	dh_shlibdeps -pbusybox-static
	dh_gencontrol -pbusybox-static
	dh_md5sums -pbusybox-static
	dh_builddeb -pbusybox-static

binary-arch: busybox-deb busybox-udeb busybox-static

binary-indep:
	dh_testdir
	dh_testroot
	$(MAKE) clean
	$(MAKE) newdoc
	dh_installdocs -pbusybox-doc
	dh_installchangelogs Changelog -pbusybox-doc
	dh_compress -pbusybox-doc
	dh_fixperms -pbusybox-doc
	dh_installdeb -pbusybox-doc
	dh_gencontrol -pbusybox-doc
	dh_md5sums -pbusybox-doc
	dh_builddeb -pbusybox-doc

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure