09d9e17f66b52b1cb20dac3b291c76a24cddb401
[live-initramfs-grml.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 upstream:
7         cd .. && git clone git://git.debian.org/git/users/daniel/live-initramfs.git || true
8         rm -rf ../live-initramfs/.git
9
10 build: build-stamp
11 build-stamp:
12         dh_testdir
13
14         # Building package
15         $(MAKE) -C manpages
16
17         touch build-stamp
18
19 clean:
20         dh_testdir
21         dh_testroot
22         rm -f build-stamp
23
24         # Cleaning package
25         $(MAKE) -C manpages clean
26
27         dh_clean
28
29 install: build
30         dh_testdir
31         dh_testroot
32         dh_clean -k
33         dh_installdirs
34
35         # Installing package
36         $(MAKE) install DESTDIR=$(CURDIR)/debian/live-initramfs
37
38         # Removing double files
39         rm -f debian/live-initramfs/usr/share/doc/live-initramfs/COPYING
40         rm -f debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog
41         mv debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog.casper debian/live-initramfs/usr/share/doc/live-initramfs/changelog.casper
42
43         # Installing bug control
44         install -D -m 0755 debian/bug/script debian/live-initramfs/usr/share/bug/live-initramfs
45
46 binary-arch: build install
47
48 binary-indep: build install
49         dh_testdir
50         dh_testroot
51         dh_installchangelogs docs/ChangeLog
52         dh_installdocs
53         dh_install
54         dh_installinit --no-restart-on-upgrade --no-start -- start 89 0 6 .
55         dh_compress
56         dh_fixperms
57         dh_installdeb
58         dh_gencontrol
59         dh_md5sums
60         dh_builddeb
61
62 binary: binary-indep binary-arch
63 .PHONY: build clean binary-indep binary-arch binary install