e67a18b21f0e35074f3b22a033a140c8b83f747c
[grml-live-grml.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
14 build-arch: build-stamp
15
16 build-indep: build-stamp
17
18 build-stamp:
19         dh_testdir
20         touch $@
21
22 clean:
23         dh_testdir
24         dh_testroot
25         rm -f build-stamp
26
27         dh_clean
28         # clean up the stuff dh_clean leaves behind
29         -rm -rf debian/build
30
31 install: build
32         dh_testdir
33         dh_testroot
34         dh_prep
35         dh_installdirs
36         # grub files
37         install -d debian/tmp/templates/compat/grub
38         cp -a /usr/lib/grub/*-pc/*.mod debian/tmp/templates/compat/grub/
39         cp -a /usr/lib/grub/*-pc/*.o debian/tmp/templates/compat/grub/
40         cp -a /usr/lib/grub/*-pc/*.lst debian/tmp/templates/compat/grub/
41         cp -a /usr/share/grub/ascii.pf2 debian/tmp/templates/compat/grub/
42         /usr/bin/grub-mkimage -d /usr/lib/grub/*-pc -o \
43                 debian/tmp/templates/compat/grub/core.img biosdisk iso9660 --format=i386-pc
44         # isolinux base files
45         install -d debian/tmp/templates/compat/isolinux
46         for file in isolinux.bin ifcpu64.c32 vesamenu.c32; do \
47                 cp -a "/usr/lib/syslinux/$${file}" debian/tmp/templates/compat/isolinux/ ; \
48         done
49         # others
50         install -d debian/tmp/templates/compat/addons
51         cp -a /usr/lib/ipxe/ipxe.lkrn debian/tmp/templates/compat/addons/
52         cp -a /usr/share/misc/pci.ids debian/tmp/templates/compat/addons/
53         cp -a /boot/memtest86+.bin debian/tmp/templates/compat/addons/
54         for file in memdisk chain.c32 hdt.c32 menu.c32; do \
55                 cp -a "/usr/lib/syslinux/$${file}" debian/tmp/templates/compat/addons/ ; \
56         done
57
58 # Build architecture-independent files here.
59 binary-indep: build install
60         dh_testdir
61         dh_testroot
62         dh_install
63         dh_installchangelogs
64         dh_installdocs
65         dh_link
66         dh_strip
67         dh_compress
68         dh_fixperms
69         dh_installdeb
70         dh_shlibdeps
71         dh_gencontrol
72         dh_md5sums
73         dh_builddeb
74
75 binary: binary-indep binary-arch
76 .PHONY: build clean binary-indep binary-arch binary install