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