Provide buildd as separate Debian package buildd, use nail instead of mutt in buildd...
[grml-live.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 b=$(CURDIR)/debian/build
13
14 build: build-stamp
15
16 build-stamp:
17         dh_testdir
18         cd docs && $(MAKE) && cd ../
19         touch $@
20
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f build-stamp
25
26         # Add here commands to clean up after the build process.
27         cd docs && $(MAKE) clean && cd ../
28
29         dh_clean
30         # clean up the stuff dh_clean leaves behind
31         -rm -rf debian/build
32
33 install: build
34         dh_testdir
35         dh_testroot
36         dh_clean -k
37         dh_installdirs
38
39 grml-live: install
40         @echo "--- Building: $@"
41         dh_installdirs       -p$@ -P$(b)/$@
42         dh_link              -p$@ -P$(b)/$@
43         dh_installdocs       -p$@ -P$(b)/$@
44         dh_installchangelogs -p$@ -P$(b)/$@
45         dh_install           -p$@ -P$(b)/$@
46         dh_strip             -p$@ -P$(b)/$@
47         dh_compress          -p$@ -P$(b)/$@
48         mkdir -p $(b)/$(@)/usr/share/lintian/overrides/
49         cp -av debian/overrides.$(@) $(b)/$(@)/usr/share/lintian/overrides/$(@)
50         dh_fixperms          -p$@ -P$(b)/$@
51         # make sure they are executable:
52         chmod 755 $(b)/$(@)/etc/grml/fai/config/hooks/*
53         dh_makeshlibs        -p$@ -P$(b)/$@ -V
54         dh_installdeb        -p$@ -P$(b)/$@
55         dh_shlibdeps         -p$@ -P$(b)/$@
56         dh_installdebconf    -p$@ -P$(b)/$@
57         dh_gencontrol        -p$@ -P$(b)/$@
58         dh_md5sums           -p$@ -P$(b)/$@
59         dh_builddeb          -p$@ -P$(b)/$@
60
61 grml-live-addons: install
62         @echo "--- Building: $@"
63         dh_installdirs       -p$@ -P$(b)/$@
64         dh_link              -p$@ -P$(b)/$@
65         dh_installdocs       -p$@ -P$(b)/$@
66         dh_installchangelogs -p$@ -P$(b)/$@
67         dh_install           -p$@ -P$(b)/$@
68         dh_strip             -p$@ -P$(b)/$@
69         dh_compress          -p$@ -P$(b)/$@
70         mkdir -p $(b)/$(@)/usr/share/lintian/overrides/
71         cp -av debian/overrides.$(@) $(b)/$(@)/usr/share/lintian/overrides/$(@)
72         dh_fixperms          -p$@ -P$(b)/$@
73         dh_makeshlibs        -p$@ -P$(b)/$@ -V
74         dh_installdeb        -p$@ -P$(b)/$@
75         dh_shlibdeps         -p$@ -P$(b)/$@
76         dh_installdebconf    -p$@ -P$(b)/$@
77         dh_gencontrol        -p$@ -P$(b)/$@
78         dh_md5sums           -p$@ -P$(b)/$@
79         dh_builddeb          -p$@ -P$(b)/$@
80
81 grml-live-db: install
82         @echo "--- Building: $@"
83         dh_installdirs       -p$@ -P$(b)/$@
84         dh_link              -p$@ -P$(b)/$@
85         dh_installdocs       -p$@ -P$(b)/$@
86         dh_installchangelogs -p$@ -P$(b)/$@
87         dh_install           -p$@ -P$(b)/$@
88         dh_strip             -p$@ -P$(b)/$@
89         dh_compress          -p$@ -P$(b)/$@
90         mkdir -p $(b)/$(@)/usr/share/lintian/overrides/
91         cp -av debian/overrides.$(@) $(b)/$(@)/usr/share/lintian/overrides/$(@)
92         dh_fixperms          -p$@ -P$(b)/$@
93         dh_makeshlibs        -p$@ -P$(b)/$@ -V
94         dh_installdeb        -p$@ -P$(b)/$@
95         dh_shlibdeps         -p$@ -P$(b)/$@
96         dh_installdebconf    -p$@ -P$(b)/$@
97         dh_gencontrol        -p$@ -P$(b)/$@
98         dh_md5sums           -p$@ -P$(b)/$@
99         dh_builddeb          -p$@ -P$(b)/$@
100
101 grml-live-buildd: install
102         @echo "--- Building: $@"
103         dh_installdirs       -p$@ -P$(b)/$@
104         dh_link              -p$@ -P$(b)/$@
105         dh_installdocs       -p$@ -P$(b)/$@
106         dh_installchangelogs -p$@ -P$(b)/$@
107         dh_install           -p$@ -P$(b)/$@
108         dh_strip             -p$@ -P$(b)/$@
109         dh_compress          -p$@ -P$(b)/$@
110         mkdir -p $(b)/$(@)/usr/share/lintian/overrides/
111         cp -av debian/overrides.$(@) $(b)/$(@)/usr/share/lintian/overrides/$(@)
112         dh_fixperms          -p$@ -P$(b)/$@
113         dh_makeshlibs        -p$@ -P$(b)/$@ -V
114         dh_installdeb        -p$@ -P$(b)/$@
115         dh_shlibdeps         -p$@ -P$(b)/$@
116         dh_installdebconf    -p$@ -P$(b)/$@
117         dh_gencontrol        -p$@ -P$(b)/$@
118         dh_md5sums           -p$@ -P$(b)/$@
119         dh_builddeb          -p$@ -P$(b)/$@
120
121 # Build architecture-dependent files here.
122 binary-all: build install
123
124 # Build architecture-independent files here.
125 binary-indep: build install grml-live grml-live-addons grml-live-db grml-live-buildd
126
127 binary: binary-indep binary-arch
128 .PHONY: build clean binary-indep binary-arch binary install