File: rules

package info (click to toggle)
grub 0.97-80
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,244 kB
  • sloc: ansic: 40,100; sh: 5,381; asm: 2,227; makefile: 507; perl: 338
file content (64 lines) | stat: -rwxr-xr-x 1,819 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#! /usr/bin/make -f
%:
	dh $@

export DEB_CFLAGS_MAINT_APPEND := -Wall
# It is doubtful whether GRUB 0.97 plays well with hardening.  Use GRUB 2
# instead for that.
export DEB_BUILD_MAINT_OPTIONS := hardening=-all

override_dh_auto_configure:
	CFLAGS= LDFLAGS= dh_auto_configure -- \
		--libdir=\$${prefix}/lib --disable-auto-linux-mem-opt

override_dh_auto_build-arch:
	dh_auto_build

	## the creation of these manpages here is temporary,
	## when building grub finally works with the version
	## of autoconf in debian we can use MAINTAINER_MODE_TRUE
	# create man page for grub
	( cd docs && help2man \
	--name="the grub shell" \
	--include=grub.8.additions --include=help2man.additions \
	--section=8 --output=grub.8 \
	../grub/grub )

	# create man page for grub-install
	( cd util && chmod 755 grub-install )
	( cd docs && help2man \
	--name="install GRUB on your drive" \
	--include=grub-install.8.additions --include=help2man.additions \
	--section=8 --output=grub-install.8 \
	../util/grub-install )

	# create man page for mbchk
	( cd docs && help2man \
	--name="check the format of a Multiboot kernel" \
	--include=help2man.additions \
	--section=1 --output=mbchk.1 \
	../util/mbchk )

	# create man page for grub-md5-crypt
	( cd util && chmod 755 grub-md5-crypt )
	( cd docs && help2man \
	--name="Encrypt a password in MD5 format" \
	--include=help2man.additions \
	--section=8 --output=grub-md5-crypt.8 \
	../util/grub-md5-crypt )

override_dh_auto_build-indep:
	# create html documentation from texi files
	( cd docs && \
	  texi2html --init-file=../debian/texi2html.init -split_chapter \
	            --output=grub grub.texi )

override_dh_auto_test:

override_dh_clean:
	dh_clean
	chmod +x debian/script debian/kernel/*

override_dh_installinfo:
	cp docs/grub.info docs/grub-legacy.info
	dh_installinfo