File: rules

package info (click to toggle)
ispell-tl 0.02-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 208 kB
  • ctags: 14
  • sloc: makefile: 52
file content (47 lines) | stat: -rwxr-xr-x 1,424 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/cdbs/1/rules/debhelper.mk

ASPELL_DIR = usr/lib/aspell-0.60

DEB_INSTALL_DIRS_itagalog := usr/lib/ispell
DEB_INSTALL_DIRS_aspell-tl := ${ASPELL_DIR}
DEB_INSTALL_DOCS_ALL := Crawler.txt README

build/aspell-tl::
	aspell --local-data-dir=$(CURDIR)/debian --lang=tl create master ./tl.rws < tl.dic
	echo "add tl.rws" > ./tl.multi
	echo "add tl.multi" > ./tagalog.alias
	cat debian/info-all.in > debian/aspell-tl.info-aspell

build/itagalog::
	buildhash tl.dic tl.aff tl.hash
	cat debian/info-all.in > debian/itagalog.info-ispell

install/aspell-tl::
	dh_install -paspell-tl tl.rws tl.multi tagalog.alias debian/tl.dat debian/tl_affix.dat ${ASPELL_DIR}

install/itagalog::
	dh_install -pitagalog tl.aff tl.hash usr/lib/ispell

binary-post-install/aspell-tl::
	dh_link -paspell-tl ${ASPELL_DIR}/tl.multi ${ASPELL_DIR}/tagalog.multi
	installdeb-aspell -paspell-tl

binary-post-install/itagalog::
	installdeb-ispell -pitagalog
	dh_link -pitagalog usr/lib/ispell/tl.aff usr/lib/ispell/tagalog.aff
	dh_link -pitagalog usr/lib/ispell/tl.hash usr/lib/ispell/tagalog.hash

cleanbuilddir/itagalog::
	rm -f tl.hash *.cnt *.stat debian/itagalog.info-ispell

cleanbuilddir/aspell-tl::
	rm -f tl.dat tl.rws tl.multi tagalog.alias debian/aspell-tl.info-aspell

DEB_MAKE_INSTALL_TARGET := install DESTDIR=${DEB_DESTDIR}