File: rules

package info (click to toggle)
dutch 1:2.10-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,820 kB
  • sloc: makefile: 52; sh: 46
file content (73 lines) | stat: -rwxr-xr-x 1,888 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

ITMPDIR:=$(CURDIR)/debian/idutch
ATMPDIR:=$(CURDIR)/debian/aspell-nl

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
	dh_testdir
	mkdir -p myspell
	mkdir -p wdutch
	chmod +x convert
	./convert
	touch build-stamp

clean:
	dh_testdir  
	dh_testroot

	-rm -f build-stamp

	-[ -L debian/aspell-nl.info-aspell ] && rm -f debian/aspell-nl.info-aspell
	-rm -f `find . -name "*~"` debian/files* debian/substvars core
	-rm -rf ${ATMPDIR}

	-rm aspell/nl.cwl.gz aspell/nl.cwl aspell/nl.wl
	-rm myspell/nl.dic myspell/nl.aff
	-rm wdutch/dutch ispell/dutch.mwl*
	-rmdir myspell
	-rmdir wdutch

	dh_clean

# Build architecture-independent files here.
# Pass -i to all debhelper commands in this target to reduce clutter.
binary-indep: build-stamp
	dh_testdir
	dh_testroot
	dh_installdirs

	# wdutch wordlist
	installdeb-wordlist --package=wdutch
	dh_install -i
	-ln -s idutch.info-ispell debian/aspell-nl.info-aspell
	touch ${ATMPDIR}/var/lib/aspell/nl.compat ${ATMPDIR}/var/lib/aspell/nl.rws
	installdeb-aspell --package=aspell-nl
	touch ${ITMPDIR}/var/lib/ispell/dutch.compat ${ITMPDIR}/var/lib/ispell/dutch.hash
	installdeb-ispell --package=idutch
	installdeb-myspell --package=hunspell-nl --srcdir=myspell
	# general stuff
	dh_installdocs -i
	dh_installman -pwdutch debian/dutch.5
	dh_installchangelogs -i
	dh_link -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i -Nhunspell-nl
	dh_gencontrol -p hunspell-nl -- -v2:$(DEB_VERSION_UPSTREAM_REVISION)
	dh_md5sums -i -Xvar/lib/aspell -Xvar/lib/ispell
	dh_builddeb -i

# Build architecture-dependent files here.
# Pass -a to all debhelper commands in this target to reduce clutter.
binary-arch: build
	# Nothing to do

binary: binary-indep binary-arch

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