blob: 557817aa00f80af20198775bf2a02ac7c3f08d33 (
plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
#!/usr/bin/make -f
# Sample debian.rules file - Copyright 1994,1995 by Ian Jackson.
#
# Invoke each target with `./debian/rules <target>'. All targets should be
# invoked with the package root as the current directory.
# The name of the package
P = dhelp
R = debian/tmp
DIRECTORIES = \
$(R) \
$(R)/DEBIAN \
$(R)/usr \
$(R)/usr/bin \
$(R)/usr/share/doc/$(P) \
$(R)/usr/lib \
$(R)/usr/lib/cgi-bin \
$(R)/usr/share/man \
$(R)/usr/share/man/man1 \
$(R)/usr/share/man/man8 \
$(R)/usr/share/man/de_DE \
$(R)/usr/share/man/de_DE/man1 \
$(R)/usr/sbin \
$(R)/var \
$(R)/var/lib \
$(R)/var/lib/dhelp
$(DIRECTORIES):
install -d -g root -o root -m 755 $@
chmod g-s $@
# Builds the binary package.
build:
$(checkdir)
touch build
# Clean $(DIRECTORIES)
clean-dir:
$(checkdir)
rm -rf $(R)
# Undoes the effect of `make -f rules build'.
clean: clean-dir
$(checkdir)
[ ! -f Makefile ] || make clean
rm -f debian/files* debian/substvars core debian/*~ *~ doc/*~ build
rm -f debian/*.debhelper
# Makes a binary package.
binary-indep: $(DIRECTORIES) checkroot build
$(checkdir)
binary-arch: $(DIRECTORIES) checkroot build
$(checkdir)
make
# dh_installdirs
dh_installchangelogs
dh_installmenu
dh_installcron
dh_installdocs doc
cp debian/dhelp $(R)/usr/share/doc/$(P)/.dhelp
cp man/dhelp.1 $(R)/usr/share/man/man1/
cp man/dhelp_parse.8 $(R)/usr/share/man/man8/
cp man/de/dhelp.1 $(R)/usr/share/man/de_DE/man1/
cp dhelp_parse $(R)/usr/sbin
cp dhelp dh_dhelp $(R)/usr/bin
cp dsearch $(R)/usr/lib/cgi-bin
dh_strip
dh_compress -X.jpg
dh_fixperms
chown www-data.www-data $(R)/var/lib/dhelp
dh_shlibdeps
dh_gencontrol
dh_installdeb
dh_md5sums
dh_builddeb
define checkdir
test -f debian/rules
endef
# Below here is fairly generic really
binary: binary-indep binary-arch
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|