File: rules

package info (click to toggle)
delo 0.8-2.5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 476 kB
  • ctags: 1,272
  • sloc: ansic: 4,027; makefile: 200; sh: 141; asm: 55
file content (62 lines) | stat: -rwxr-xr-x 1,433 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
#!/usr/bin/make -f

# Include dpatch stuff.
include /usr/share/dpatch/dpatch.make

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PACKAGE=$(shell dh_listpackages)
ARCH=$(shell dpkg --print-architecture)

build: build-stamp
build-stamp: patch-stamp
	dh_testdir
	$(MAKE)
	touch build-stamp

clean: clean1 unpatch
clean1:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	rm -rf debian/patched
	$(MAKE) clean
	dh_clean
	debconf-updatepo

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs sbin usr/bin usr/lib/$(PACKAGE) usr/share/doc/$(PACKAGE) /usr/share/man/man1 /usr/share/man/man5 /usr/share/man/man8
	dh_install delo/delo sbin
	dh_install t-rex/t-rex usr/bin
	dh_installdirs boot usr/lib/$(PACKAGE)
	dh_install loader/delo.2nd boot
	dh_install t-rex-loader/t-rex-loader usr/lib/$(PACKAGE)
	dh_installchangelogs
	dh_installdocs README TODO kernel-patch/ramdisk_kernel_parameters.patch
	dh_installexamples delo.conf
	dh_installman man/t-rex.1 man/delo.conf.5 man/delo.8
	dh_installdebconf
	dh_installdeb

# Build architecture-independent files here.
binary-indep: build install

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_strip -Xloader -Xdelo.2nd
	dh_compress
	dh_fixperms
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install patch unpatch \
	clean1