File: rules

package info (click to toggle)
ispell-da 1.4.22-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,304 kB
  • ctags: 5
  • sloc: makefile: 84; sh: 62
file content (90 lines) | stat: -rwxr-xr-x 1,798 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
#!/usr/bin/make -f

export DH_COMPAT=2
export DH_OPTIONS

build: build-stamp
build-stamp:
	dh_testdir
	dh_clean
	make dansk.hash

clean:
	dh_testdir
	make clean
	rm -f dansk
	dh_clean

wdanish: DH_OPTIONS=--package=wdanish
wdanish: build
	dh_testdir
	dh_testroot
	dh_installdirs

	perl -ne 'chomp; split /\//; print @_[0], "\n";' words-da.ispell > \
	     debian/wdanish/usr/share/dict/danish

	dh_installdocs
	dh_installchangelogs
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb
	 

idanish: DH_OPTIONS=--package=idanish
idanish: build
	dh_testdir
	dh_testroot
	dh_installdirs

	install -o root -g root -m 644 dansk.aff debian/idanish/usr/lib/ispell/danish.aff
	install -o root -g root -m 644 dansk.hash debian/idanish/usr/lib/ispell/danish.hash

	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_link
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

aspell-da: DH_OPTIONS=--package=aspell-da
aspell-da: build
	dh_testdir
	dh_testroot
	dh_installdirs

	cat words-da.ispell | ispell -d ./dansk -e | \
          perl -ane ' print join("\n", @F), "\n" unless /\d/; ' | \
          aspell --local-data-dir=`pwd` --lang=dansk create master ./dansk

	install  -o root -g root -m 644 dansk.dat debian/aspell-da/usr/share/aspell/dansk.dat
	install  -o root -g root -m 644 dansk_phonet.dat debian/aspell-da/usr/share/aspell/dansk_phonet.dat
	install  -o root -g root -m 644 dansk debian/aspell-da/usr/lib/aspell/dansk


	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_link
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep: wdanish

binary-arch: idanish aspell-da

# Below here is fairly generic really

binary:	binary-indep binary-arch

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