File: Makefile

package info (click to toggle)
iirish 2.0-24
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 4,980 kB
  • ctags: 26
  • sloc: lisp: 580; perl: 195; makefile: 138; python: 124; sed: 55; sh: 2
file content (75 lines) | stat: -rw-r--r-- 1,792 bytes parent folder | download | duplicates (4)
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
# Makefile for ispell-ga
# ispell-ga -- Ispell dictionary list for Irish Gaelic (irish)
#
# Copyright (C) Alastair McKinstry, 1997,1998, 2002
# Released under the GNU Public License
#
# $Id: Makefile,v 1.1.1.1 2000/03/06 19:36:18 alastairmck Exp $

ifndef PREFIX
PREFIX=${DESTDIR}/usr
endif

RELEASE=2.0

# Edit WORDLISTS to change list of words that are included.

# WORDLISTS= wordlists/words 	\
	   wordlists/computer 	\
	   wordlists/languages	\
	   wordlists/places	\
	   wordlists/names	\
	   wordlists/unchecked-words\
	   wordlists/scannell-words

WORDLISTS = scannell/gaeilge.raw


irish.words irish.hash: $(WORDLISTS)
#	cat $(WORDLISTS) | ./tools/irish-prefixes.pl > irish.words
	cat $(WORDLISTS) > irish.words
	buildhash irish.words irish.aff irish.hash

tests: build
	$(MAKE) -C tests

clean:
	rm -f *.cnt *.stat  irish.words *~ *.bak *.hash
	$(MAKE) -C tests clean
	${MAKE} -C rpm clean

reallyclean: clean
	rm -rf *.hash

test:
	rm -f irish.hash
	cat $(WORDLISTS) incorrect-words |  ./tools/irish-prefixes.pl > irish.words
	buildhash irish.words irish.aff irish.hash


munch:
	for d in $(WORDLISTS) incorrect-words ; do munchlist -l  irish.aff $$d > tmp ; mv tmp $$d ; done



rpm: 
	${MAKE} -C rpm rpm

install: install-ispell 

install-ispell: irish.hash
	mkdir -p $(PREFIX)/lib/ispell
	mkdir -p $(PREFIX)/share/man/man5
	cp irish.hash $(PREFIX)/lib/ispell
	cp irish.aff  $(PREFIX)/lib/ispell
	cp gaeilge.5 $(PREFIX)/share/man/man5

install-words: irish.words
	mkdir -p $(PREFIX)/share/dict
	cp irish.words $(PREFIX)/share/dict/irish

install-myspell:
	mkdir -p  ${PREFIX}/share/myspell/dicts
	mkdir -p ${PREFIX}/share/myspell/infos/ooo
	cp myspell/ga_IE.aff myspell/ga_IE.dic ${PREFIX}/share/myspell/dicts
	cp debian/myspell.info ${PREFIX}/share/myspell/infos/ooo/myspell-ga