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.
9 # Uncomment this to turn on verbose mode.
12 b=$(CURDIR)/debian/build
18 cd docs && $(MAKE) && cd ../
26 # Add here commands to clean up after the build process.
27 cd docs && $(MAKE) clean && cd ../
30 # clean up the stuff dh_clean leaves behind
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)/$@
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)/$@
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)/$@
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)/$@
121 # Build architecture-dependent files here.
122 binary-all: build install
124 # Build architecture-independent files here.
125 binary-indep: build install grml-live grml-live-addons grml-live-db grml-live-buildd
127 binary: binary-indep binary-arch
128 .PHONY: build clean binary-indep binary-arch binary install