Split package into grml-live and grml-live-addons
[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 # Build architecture-dependent files here.
82 binary-all: build install
83
84 # Build architecture-independent files here.
85 binary-indep: build install grml-live grml-live-addons
86
87 binary: binary-indep binary-arch
88 .PHONY: build clean binary-indep binary-arch binary install