File: Makefile

package info (click to toggle)
ispell-fo 0.2.27-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,244 kB
  • ctags: 17
  • sloc: makefile: 110; perl: 7; sh: 4
file content (32 lines) | stat: -rw-r--r-- 1,213 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
LANG=fo_FO.ISO8859-1

sprog=froyskt
sprog_en=Faroese
sprog_en_lower_case=faroese
sprogkode=fo
landekode=FO

lang = fo
version = 0.2.27

installdir=`ispell -vv | grep LIBDIR | cut -d'"' -f2`

all: maskbits $(sprog).hash

maskbits:
	@test "`ispell -vv | grep MASKBITS`" != ""              || ( echo Ispell should be compiled with MASKBITS set to at least 64. ; exit -2 )
	@test `ispell -vv | grep MASKBITS | cut -d= -f2` -ge 64 || ( echo Ispell should be compiled with MASKBITS set to at least 64. ; exit -3 )

install: maskbits $(sprog).hash $(sprog).aff
	install -o root -g root -m 0644 $(sprog).hash $(installdir)
	install -o root -g root -m 0644 $(sprog).aff $(installdir)
	ln -fs $(installdir)/$(sprog).hash $(installdir)/$(sprogkode)_$(landekode).hash
	ln -fs $(installdir)/$(sprog).aff  $(installdir)/$(sprogkode)_$(landekode).aff
	ln -fs $(installdir)/$(sprog).hash $(installdir)/$(sprog_en_lower_case).hash
	ln -fs $(installdir)/$(sprog).aff  $(installdir)/$(sprog_en_lower_case).aff

$(sprog).hash: maskbits $(sprog).aff words-$(sprogkode).ispell
	buildhash words-$(sprogkode).ispell $(sprog).aff $(sprog).hash

clean:
	rm -f words-$(sprogkode).ispell.stat $(sprog).hash words-$(sprogkode).ispell.cnt *~