File: rules

package info (click to toggle)
ispell-czech 20040229-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,580 kB
  • ctags: 5
  • sloc: perl: 711; makefile: 70; sh: 43
file content (63 lines) | stat: -rwxr-xr-x 1,555 bytes parent folder | download | duplicates (2)
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
#!/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=iczech

build:
	dh_testdir    
	make
	(wc -l < czech.a-z; cat czech.a-z) > cs_CZ.mydic
	ispellaff2myspell --charset=latin2 --myheader=debian/cs_CZ.myheader czech.aff > cs_CZ.myaff

clean:
	dh_testdir
	dh_testroot
	dh_clean
	-rm -f czech.a-z.cnt 
	-rm -f czech.a-z
	-rm -f czech.a-z.stat
	-rm -f czech.hash
	-rm -f cs_CZ.myaff
	-rm -f cs_CZ.mydic

binary-indep: build
	dh_testdir -i
	dh_testroot -i
	dh_installdocs -i
	dh_installchangelogs -i

	installdeb-myspell -p myspell-cs-cz
	install -d debian/myspell-cs-cz/usr/share/myspell/dicts
	install -g root -m 644 -o root cs_CZ.myaff debian/myspell-cs-cz/usr/share/myspell/dicts/cs_CZ.aff
	install -g root -m 644 -o root cs_CZ.mydic debian/myspell-cs-cz/usr/share/myspell/dicts/cs_CZ.dic

	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch: build
	dh_testdir -a
	dh_testroot -a
	dh_installdocs -a
	dh_installchangelogs -a
	installdeb-ispell -p iczech # This calls internally to dh_installdebconf
	dh_installdirs -a
	install -d debian/iczech/usr/lib/ispell
	install -g root -m 644 -o root czech.aff debian/iczech/usr/lib/ispell/
	install -g root -m 644 -o root czech.hash debian/iczech/usr/lib/ispell/
#
	dh_compress -a
	dh_fixperms -a
	dh_installdeb -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

binary: binary-indep binary-arch

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