File: rules

package info (click to toggle)
hkgerman 2-7.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,344 kB
  • ctags: 6
  • sloc: makefile: 104; perl: 64; sh: 40; sed: 15
file content (140 lines) | stat: -rwxr-xr-x 4,672 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
#!/usr/bin/make -f
# Sample debian.rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself.  (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified
#
# Modified to be a prototype for debmake by Christoph Lameter <clameter@debian.org>

package=hkgerman

worte=	worte.txt verben.txt adjektive.txt klein.txt \
	geographie.txt vornamen.txt abkuerz.txt imperat.txt latein.txt \
	informatik.txt infoabk.txt elektronik.txt orgabk.txt marken.txt \
	worte2.txt zusammen.txt technik.txt compeng.txt \
	alphabeta.txt roemisch.txt

build:
	$(checkdir)
	make WORTE="$(worte)"
	debian/rules deutsch
	touch build

deutsch.hash all.words:
	make WORTE="$(worte)"

debian/diacrit7to8: debian/diacrit7to8.l
	cd debian; flex -8 -f diacrit7to8.l
	gcc -O2 debian/lex.yy.c -lfl -o debian/diacrit7to8
	@/bin/rm debian/lex.yy.c

deutsch: all.words debian/diacrit7to8
	sed -f ./clear_affix all.words | debian/diacrit7to8 > $@

clean:
	$(checkdir)
	-rm -f build
	-rm -f debian/diacrit7to8
	-rm -f deutsch
	-make clean
	-rm -f `find . -name "*~"`
	-rm -rf debian/tmp `find debian/* -type d -a '!' -name CVS` debian/files* core
	-rm -f debian/*substvars debian/files
	-rm -f debian/*.deb

#binary-indep:	checkroot build
binary-indep:	checkroot deutsch
	$(checkdir)
	-rm -rf debian/wgerman
	#
	install -d -o root -g root -m 0755 debian/wgerman/usr/dict
	install -o root -g root -m 0644 deutsch debian/wgerman/usr/dict/german
	#
	install -d -o root -g root -m 0755 debian/wgerman/usr/man/man5
	install -o root -g root -m 0644 debian/words.5 debian/wgerman/usr/man/man5
	cd debian/wgerman/usr/man/man5; gzip -9v words.5
	#
	install -d -o root -g root -m 0755 debian/wgerman/usr/doc/wgerman
	install -o root -g root -m 0644 debian/wgerman.copyright \
		debian/wgerman/usr/doc/wgerman/copyright
	install -o root -g root -m 0644 debian/README.debian \
		debian/wgerman/usr/doc/wgerman
	install -o root -g root -m 0644 Changes \
		debian/wgerman/usr/doc/wgerman/changelog
	install -o root -g root -m 0644 debian/changelog \
		debian/wgerman/usr/doc/wgerman/changelog.Debian
	cd debian/wgerman/usr/doc/wgerman; gzip -9v changelog changelog.Debian
	#
	install -d -o root -g root -m 0755 debian/wgerman/DEBIAN
	install -o root -g root -m 0755 debian/wgerman.postinst \
		debian/wgerman/DEBIAN/postinst
	install -o root -g root -m 0755 debian/wgerman.prerm \
		debian/wgerman/DEBIAN/prerm
	dpkg-gencontrol -pwgerman -Pdebian/wgerman
	#
	dpkg --build debian/wgerman
	dpkg-name -s .. debian/wgerman.deb

binary-arch:	checkroot build
	$(checkdir)
	-rm -rf debian/igerman
	#
	install -d -o root -g root -m 0755 debian/igerman/usr/lib/ispell
	install -o root -g root -m 0644 deutsch.hash debian/igerman/usr/lib/ispell/german.hash
	install -o root -g root -m 0644 deutsch.aff debian/igerman/usr/lib/ispell/german.aff
	cd debian/igerman/usr/lib/ispell; ln -s german.aff deutsch.aff
	cd debian/igerman/usr/lib/ispell; ln -s german.hash deutsch.hash
	#
	install -d -o root -g root -m 0755 debian/igerman/usr/doc/igerman
	install -o root -g root -m 0644 README Contributors ANNOUNCE debian/README.debian \
		debian/igerman/usr/doc/igerman
	install -o root -g root -m 0644 Changes \
		debian/igerman/usr/doc/igerman/changelog
	install -o root -g root -m 0644 debian/changelog \
		debian/igerman/usr/doc/igerman/changelog.Debian
	install -o root -g root -m 0644 debian/igerman.copyright \
		debian/igerman/usr/doc/igerman/copyright
	cd debian/igerman/usr/doc/igerman; gzip -9v README Contributors ANNOUNCE changelog changelog.Debian
	#
	install -d -o root -g root -m 0755 debian/igerman/DEBIAN
	install -o root -g root -m 0755 debian/igerman.postinst \
		debian/igerman/DEBIAN/postinst
	install -o root -g root -m 0755 debian/igerman.prerm \
		debian/igerman/DEBIAN/prerm
	dpkg-gencontrol -pigerman -Pdebian/igerman
	#
	dpkg --build debian/igerman
	dpkg-name -s .. debian/igerman.deb

#	debstd Changes README Contributors ANNOUNCE
#bis hier her richtig?
# make install DESTDIR=`pwd`/debian/tmp
#	dpkg-gencontrol -phkgerman
#	chown -R root.root debian/tmp
#	chmod -R go=rX debian/tmp
#	dpkg --build debian/tmp ..

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


# Local Variables:
# mode: Makefile
# End: