Install buildd files in /usr/share/grml-live/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 build: build-stamp
13
14 build-stamp:
15         dh_testdir
16         cd docs && $(MAKE) && cd ../
17         touch $@
18
19 clean:
20         dh_testdir
21         dh_testroot
22         rm -f build-stamp
23
24         # Add here commands to clean up after the build process.
25         cd docs && $(MAKE) clean && cd ../
26
27         dh_clean 
28
29 install: build
30         dh_testdir
31         dh_testroot
32         dh_clean -k 
33         dh_installdirs etc/grml/fai/live-initramfs usr/sbin usr/share/doc/grml-live \
34                        usr/share/grml-live usr/share/grml-live/examples
35
36         # Add here commands to install the package into debian/grml-live.
37         cp -a etc         debian/grml-live/
38         cp -a examples    debian/grml-live/usr/share/doc/grml-live/
39         cp -a templates   debian/grml-live/usr/share/grml-live/
40         cp -a buildd/*.sh debian/grml-live/usr/share/grml-live/buildd/
41         install -o root -m 640 buildd/grml-buildd.conf debian/grml-live/etc/grml/grml-buildd.conf
42         install -o root -m 755 grml-live debian/grml-live/usr/sbin/grml-live
43
44 # Build architecture-independent files here.
45 binary-indep: build install
46 # We have nothing to do by default.
47
48 # Build architecture-dependent files here.
49 binary-arch: build install
50         dh_testdir
51         dh_testroot
52         dh_installchangelogs 
53         dh_installdocs docs/grml-live.html
54         dh_installexamples
55         dh_installman docs/grml-live.8
56         dh_link
57         dh_strip
58         dh_compress
59         mkdir -p $(CURDIR)/debian/grml-live/usr/share/lintian/overrides/
60         cp -av debian/overrides $(CURDIR)/debian/grml-live/usr/share/lintian/overrides/grml-live
61         dh_fixperms
62         # make sure they are executable:
63         chmod 755 debian/grml-live/etc/grml/fai/config/hooks/*
64         dh_installdeb
65         dh_shlibdeps
66         dh_gencontrol
67         dh_md5sums
68         dh_builddeb
69
70 binary: binary-indep binary-arch
71 .PHONY: build clean binary-indep binary-arch binary install