File: rules

package info (click to toggle)
ispell 3.1.20-0.4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,684 kB
  • ctags: 1,065
  • sloc: ansic: 8,367; makefile: 1,916; yacc: 1,712; lisp: 1,613; sh: 1,124; objc: 385; csh: 215
file content (165 lines) | stat: -rwxr-xr-x 5,739 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

package=ispell

build:
	$(checkdir)
	@echo 
	@echo " Note: When compiling the dictionaries, wenglish must be installed"
	@echo  "     as the default dictionary !!"
	@echo 
	make CFLAGS="-O2 -s" LDFLAGS=-s "PATH=$(PATH):."
	touch build

clean:
	$(checkdir)
	-rm -f build
	-make realclean
	-rm -f `find . -name "*~"`
	-rm -f languages/english/english.5l*
	-rm -f ispell*.html
	-rm -rf debian/tmp `find debian/* -type d` debian/files* core
	-rm -f debian/*substvars

binary-indep:	checkroot build
	$(checkdir)

ibritish:	checkroot build
	$(checkdir)
	#
	-rm -rf debian/ibritish debian/iamerican
	(cd languages/english; \
		patch english.4l -o english.5l <english.man.diff)
	#
	install -d	debian/ibritish	\
			debian/ibritish/DEBIAN	\
			debian/ibritish/usr/lib/ispell	\
			debian/ibritish/usr/man/man5	\
			debian/ibritish/usr/doc/ibritish
	install -g root -m 644 -o root languages/english/english.aff \
			debian/ibritish/usr/lib/ispell/british.aff
	install -g root -m 644 -o root languages/british/britishmed+.hash \
			debian/ibritish/usr/lib/ispell/britishmed+.hash
	ln -s britishmed+.hash debian/ibritish/usr/lib/ispell/british.hash
	install -g root -m 644 -o root languages/english/english.5l \
			debian/ibritish/usr/man/man5/british.5
	gzip -9v debian/ibritish/usr/man/man5/british.5
	ln -s ../ispell/copyright debian/ibritish/usr/doc/ibritish/copyright
	ln -s ../ispell/README.gz debian/ibritish/usr/doc/ibritish/README.gz
	install -g root -m 755 -o root debian/ibritish.postinst	\
			debian/ibritish/DEBIAN/postinst
	install -g root -m 755 -o root debian/ibritish.prerm	\
			debian/ibritish/DEBIAN/prerm

iamerican:	checkroot build
	$(checkdir)
	#
	install -d	debian/iamerican	\
			debian/iamerican/DEBIAN	\
			debian/iamerican/usr/lib/ispell \
			debian/iamerican/usr/man/man5	\
			debian/iamerican/usr/doc/iamerican
	install -g root -m 644 -o root languages/english/english.aff \
			debian/iamerican/usr/lib/ispell/american.aff
	install -g root -m 644 -o root languages/american/americanmed+.hash \
			debian/iamerican/usr/lib/ispell/americanmed+.hash 
	ln -s americanmed+.hash debian/iamerican/usr/lib/ispell/american.hash
	install -g root -m 644 -o root languages/english/english.5l \
			debian/iamerican/usr/man/man5/american.5
	gzip -9v debian/iamerican/usr/man/man5/american.5
	ln -s ../ispell/copyright debian/iamerican/usr/doc/iamerican/copyright
	ln -s ../ispell/README.gz debian/iamerican/usr/doc/iamerican/README.gz
	install -g root -m 755 -o root debian/iamerican.postinst	\
			debian/iamerican/DEBIAN/postinst
	install -g root -m 755 -o root debian/iamerican.prerm	\
			debian/iamerican/DEBIAN/prerm
	#
	-rm -f languages/english/english.5l
	-rm -rf debian/tmp
	#

ispell:	checkroot build
	$(checkdir)
	#
	install -d	debian/tmp/usr/bin
	install -g root -m 755 -o root \
		{ispell,buildhash,icombine,ijoin,munchlist,findaffix,tryaffix,sq,unsq}\
		debian/tmp/usr/bin 
	#
	install -d	debian/tmp/usr/sbin
	install -g root -m 744 -o root debian/update-ispell-dictionary \
		debian/tmp/usr/sbin 
	install -d	debian/tmp/usr/man/man8
	install -g root -m 644 -o root debian/update-ispell-dictionary.8 \
		debian/tmp/usr/man/man8
	gzip -9v debian/tmp/usr/man/man8/*
	#
	install -d	debian/tmp/usr/info
	-makeinfo ispell.texinfo
	install -g root -m 644 -o root ispell.info debian/tmp/usr/info
	gzip -9v debian/tmp/usr/info/ispell.info 
	-rm -f ispell*.info
	#
	install -d	debian/tmp/usr/doc/ispell
	texi2html -monolithic ispell.texinfo
	install -g root -m 644 -o root ispell.html debian/tmp/usr/doc/ispell
	#not yet# gzip -9v debian/tmp/usr/doc/ispell/ispell.html 
	-rm -f ispell*.html
	install -g root -m 644 -o root README debian/tmp/usr/doc/ispell
	gzip -9v debian/tmp/usr/doc/ispell/README
	install -g root -m 644 -o root debian/copyright debian/tmp/usr/doc/ispell
	#not unless >1500 byte# gzip -9v debian/tmp/usr/doc/ispell/copyright 
	install -g root -m 644 -o root debian/changelog	\
			debian/tmp/usr/doc/ispell/changelog.Debian
	gzip -9v debian/tmp/usr/doc/ispell/changelog.Debian
	#
	install -d	debian/tmp/usr/man/man1	debian/tmp/usr/man/man5
	install -g root -m 644 -o root ispell.5 debian/tmp/usr/man/man5
	install -g root -m 644 -o root ispell.1 debian/tmp/usr/man/man1
	ln -s ../man1/ispell.1.gz debian/tmp/usr/man/man1/buildhash.1.gz
	ln -s ../man1/ispell.1.gz debian/tmp/usr/man/man1/icombine.1.gz
	ln -s ../man1/ispell.1.gz debian/tmp/usr/man/man1/ijoin.1.gz
	ln -s ../man1/ispell.1.gz debian/tmp/usr/man/man1/munchlist.1.gz
	ln -s ../man1/ispell.1.gz debian/tmp/usr/man/man1/findaffix.1.gz
	ln -s ../man1/ispell.1.gz debian/tmp/usr/man/man1/tryaffix.1.gz
	install -g root -m 644 -o root sq.1 debian/tmp/usr/man/man1
	ln -s ../man1/sq.1.gz debian/tmp/usr/man/man1/unsq.1.gz
	-gzip -9v debian/tmp/usr/man/man*/*
	#
	install -d	debian/tmp/DEBIAN
	install -g root -m 755 -o root debian/{postinst,prerm} debian/tmp/DEBIAN
	#

binary-arch:	checkroot build ibritish iamerican ispell
	$(checkdir)
	dpkg-gencontrol -piamerican -Pdebian/iamerican
	chown -R root.root debian/iamerican
	chmod -R go=rX debian/iamerican
	dpkg --build debian/iamerican ..
	#
	dpkg-gencontrol -pibritish -Pdebian/ibritish
	chown -R root.root debian/ibritish
	chmod -R go=rX debian/ibritish
	dpkg --build debian/ibritish ..
	#
	dpkg-shlibdeps ispell
	dpkg-gencontrol -pispell -Pdebian/tmp
	chown -R root.root debian/tmp
	chmod -R go=rX debian/tmp
	dpkg --build debian/tmp ..

define checkdir
	test -s ispell.c -a -f debian/rules
endef

# Below here is fairly generic really

binary:		binary-arch

checkroot:
	$(checkdir)
	test root = "`whoami`"

.PHONY: binary binary-arch binary-indep clean checkroot