Automatically check for syntax of scripts when building package.
[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         $(MAKE) test
10
11         # Building package
12         #$(MAKE) -C manpages
13
14         touch build-stamp
15
16 clean:
17         dh_testdir
18         dh_testroot
19         rm -f build-stamp
20
21         # Cleaning package
22         #$(MAKE) -C manpages clean
23
24         dh_clean
25
26 install: build
27         dh_testdir
28         dh_testroot
29         dh_clean -k
30         dh_installdirs usr/share/grml-unittests
31
32         # Installing package
33         #$(MAKE) install DESTDIR=$(CURDIR)/debian/live-initramfs
34         cp -a autoconfig debian/grml-unittests/usr/share/grml-unittests/
35         cp -a framework.sh debian/grml-unittests/usr/share/grml-unittests/
36         cp -a grml2hd debian/grml-unittests/usr/share/grml-unittests/
37         cp -a grml2usb debian/grml-unittests/usr/share/grml-unittests/
38         cp -a grml-debootstrap debian/grml-unittests/usr/share/grml-unittests/
39         cp -a lvm debian/grml-unittests/usr/share/grml-unittests/
40         cp -a run_tests.sh debian/grml-unittests/usr/share/grml-unittests/
41         cp -a TODO debian/grml-unittests/usr/share/grml-unittests/
42         cp -a webserver.py debian/grml-unittests/usr/share/grml-unittests/
43
44 binary-arch: build install
45
46 binary-indep: build install
47         dh_testdir
48         dh_testroot
49         dh_installchangelogs
50         dh_installdocs
51         dh_install
52         dh_compress
53         dh_fixperms
54         dh_installdeb
55         dh_gencontrol
56         dh_md5sums
57         dh_builddeb
58
59 binary: binary-indep binary-arch
60 .PHONY: build clean binary-indep binary-arch binary install