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)/$@
81 # Build architecture-dependent files here.
82 binary-all: build install
84 # Build architecture-independent files here.
85 binary-indep: build install grml-live grml-live-addons
87 binary: binary-indep binary-arch
88 .PHONY: build clean binary-indep binary-arch binary install