d346d1e09ae8ee80c97edb6ea83e7e4caac04922
[grml-unittests.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 build: build-stamp
7 build-stamp:
8         dh_testdir
9
10         # Building package
11         #$(MAKE) -C manpages
12
13         touch build-stamp
14
15 clean:
16         dh_testdir
17         dh_testroot
18         rm -f build-stamp
19
20         # Cleaning package
21         #$(MAKE) -C manpages clean
22
23         dh_clean
24
25 install: build
26         dh_testdir
27         dh_testroot
28         dh_clean -k
29         dh_installdirs usr/share/grml-unittests
30
31         # Installing package
32         #$(MAKE) install DESTDIR=$(CURDIR)/debian/live-initramfs
33         cp -a autoconfig debian/grml-unittests/usr/share/grml-unittests/
34         cp -a framework.sh debian/grml-unittests/usr/share/grml-unittests/
35         cp -a grml2hd debian/grml-unittests/usr/share/grml-unittests/
36         cp -a grml2usb debian/grml-unittests/usr/share/grml-unittests/
37         cp -a grml-debootstrap debian/grml-unittests/usr/share/grml-unittests/
38         cp -a lvm debian/grml-unittests/usr/share/grml-unittests/
39         cp -a run_tests.sh debian/grml-unittests/usr/share/grml-unittests/
40         cp -a TODO debian/grml-unittests/usr/share/grml-unittests/
41         cp -a webserver.py debian/grml-unittests/usr/share/grml-unittests/
42
43 binary-arch: build install
44
45 binary-indep: build install
46         dh_testdir
47         dh_testroot
48         dh_installchangelogs
49         dh_installdocs
50         dh_install
51         dh_compress
52         dh_fixperms
53         dh_installdeb
54         dh_gencontrol
55         dh_md5sums
56         dh_builddeb
57
58 binary: binary-indep binary-arch
59 .PHONY: build clean binary-indep binary-arch binary install