File: rules

package info (click to toggle)
yaboot 1.3.6-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,192 kB
  • ctags: 2,696
  • sloc: ansic: 9,436; sh: 2,578; asm: 343; makefile: 231
file content (76 lines) | stat: -rwxr-xr-x 1,644 bytes parent folder | download
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
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/make -f

STAMP_DIR := debian/stamps

$(STAMP_DIR)/stamp:
	[ -d $(STAMP_DIR) ] || mkdir $(STAMP_DIR)
	touch $(STAMP_DIR)/stamp

build: $(STAMP_DIR)/build $(STAMP_DIR)/man
$(STAMP_DIR)/build: $(STAMP_DIR)/stamp
	dh_testdir

	$(MAKE) all

	touch $(STAMP_DIR)/build

$(STAMP_DIR)/man: $(STAMP_DIR)/stamp
	dh_testdir

	cd man && patch < ../man.patch

	touch $(STAMP_DIR)/man

man-clean:
	dh_testdir

	if [ -f $(STAMP_DIR)/man ]; then	\
	  cd man && patch -R < ../man.patch;	\
	  rm -f $(STAMP_DIR)/man;		\
	fi

clean: man-clean
	$(MAKE) clean
	rm -rf $(STAMP_DIR)
	dh_clean

binary-indep:

binary-arch: build
	dh_testdir
	dh_testroot

	dh_clean -k

	dh_installdirs usr/sbin usr/lib/yaboot usr/share/lintian/overrides/
	install -m 644 debian/overrides-yaboot debian/tmp/usr/share/lintian/overrides/yaboot

	install -m 644 second/yaboot	debian/tmp/usr/lib/yaboot/yaboot
	install -m 755 util/addnote \
			debian/tmp/usr/lib/yaboot/addnote
	install -m 755 ybin/ybin	debian/tmp/usr/sbin/ybin
	install -m 755 ybin/yabootconfig debian/tmp/usr/sbin/yabootconfig
	ln -s		ybin		debian/tmp/usr/sbin/mkofboot
	install -m 755 ybin/ofpath	debian/tmp/usr/sbin/ofpath
	install -m 644 first/ofboot	debian/tmp/usr/lib/yaboot/ofboot

	dh_installexamples doc/examples/*
	dh_installman man/*
	dh_installdocs README doc/README* BUGS THANKS TODO doc/yaboot-howto*
	dh_installchangelogs changelog

	dh_strip

	# dh_strip won't do this one since it's not executable
	strip --remove-section=.comment debian/tmp/usr/lib/yaboot/yaboot

	dh_fixperms
	dh_compress

	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_installdeb
	dh_builddeb

binary: binary-indep binary-arch