Fix debian-rules-missing-recommended-target lintian warning
[grml2usb.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-arch build-indep
13 build-arch: build-stamp
14 build-indep: build-stamp
15
16 build-stamp:
17         dh_testdir
18
19         # Add here commands to compile the package.
20         $(MAKE)
21         cd mbr && $(MAKE) && cd ..
22         touch build-stamp
23
24 clean:
25         dh_testdir
26         dh_testroot
27         rm -f build-stamp
28
29         # Add here commands to clean up after the build process.
30         $(MAKE) clean
31         cd mbr && $(MAKE) clean && cd ..
32         dh_clean
33
34 install: build
35         dh_testdir
36         dh_testroot
37         dh_clean -k
38         dh_installdirs usr/share/grml2usb/lilo usr/share/grml2usb/grub usr/share/grml2usb/mbr
39
40         # Add here commands to install the package into debian/grml2usb.
41         install -m 755 grml2usb               debian/grml2usb/usr/sbin/grml2usb
42         install -m 755 grml2usb-compat        debian/grml2usb/usr/sbin/grml2usb-compat
43         install -m 755 grml2iso               debian/grml2usb/usr/sbin/grml2iso
44         install -m 644 mbr/mbrmgr             debian/grml2usb/usr/share/grml2usb/mbr/mbrmgr
45         install -m 644 mbr/mbrldr             debian/grml2usb/usr/share/grml2usb/mbr/mbrldr
46         cp -a          lilo/                  debian/grml2usb/usr/share/grml2usb/
47         cp -a          grub/                  debian/grml2usb/usr/share/grml2usb/
48
49 # Build architecture-dependent files here.
50 binary-arch: build-arch install
51 # We have nothing to do by default.
52
53 # Build architecture-independent files here.
54 binary-indep: build-indep install
55         dh_testdir
56         dh_testroot
57         dh_installchangelogs
58         dh_installdocs TODO
59         dh_installman grml2usb.8 grml2iso.8
60         dh_link /usr/share/man/man8/grml2usb.8 /usr/share/man/man8/grml2usb-compat.8
61         dh_strip
62         dh_compress
63         mkdir -p debian/grml2usb/usr/share/lintian/overrides/
64         cp -av debian/overrides debian/grml2usb/usr/share/lintian/overrides/grml2usb
65         dh_fixperms
66         dh_installdeb
67         dh_shlibdeps
68         dh_gencontrol
69         dh_md5sums
70         dh_builddeb
71
72 binary: binary-indep binary-arch
73 .PHONY: build clean binary-indep binary-arch binary install