-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
101 lines (77 loc) · 2.62 KB
/
Makefile
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
91
92
93
94
95
96
97
98
99
100
short_list = komp,etn,Eujo,mll
pok_list = $(short_list),bot,fremd,his,mit,pok,pers,var,zoo
#eo_list = $(short_list),drv
eo_list = $(pok_list),drv
esperanto_list = $(pok_list),arhx,mav,rar,var
#esperanto_list = $(pok_list),arhx,mav,rar,var,drv
# Exotic forms // Ekzotajxoj
# Uncomment the following if you do not need rare forms like "forirontinoj";
# that could save some 11% of the eo.hash size:
#sxparu = -DSXPARE
# Where to install the *.hash files; you could try
# $ ispell -vv | grep LIBDIR
# to find it out; one possible place is this:
#install_dir=/usr/lib/ispell
# Set it manually if the following does not suit you:
install_dir=`ispell -vv | grep LIBDIR | sed 's/[^"]*\\"\([^"]*\)\\"/\1/'`
# elisp_dir = /usr/local/share/emacs/site-lisp
# VORTOJ = `pwd`/src/vortoj.l3
# Hunspell:
Hun_install_dir = /usr/share/hunspell
# VIM Spell:
vim_spl_install_dir = $(HOME)/.vim/spell
#vim_spl_install_dir = /usr/share/vim/vim82/spell
vim_list = $(esperanto_list),drv
# apostrofo = aq
##########################
# No more user settings // Fino de la uzulaj agordajxoj.
##########################
first:
@./tools/check
@echo "The hash files will be installed into $(install_dir)"
@echo "Edit Makefile; then type 'make all'"
legu-min : LEGU-MIN.l3
LC_CTYPE=C tools/l3-al-x < LEGU-MIN.l3 > legu-min
# all : ordigo eo esperanto vim
all : ordigo eo esperanto
@echo
@echo "Now you can 'make install' (if you have the appropriate permissions)"
eo : ordigo
# $(MAKE) -C work eo.hash
cd work && $(MAKE) eo.hash eo_list=$(eo_list) sxparu="-DSXPARE"
esperanto : ordigo
# $(MAKE) -C work esperanto.hash
cd work && $(MAKE) esperanto.hash esperanto_list=$(esperanto_list)
hundict : apostrofo ?= "u"
hundict :
cd oo && $(MAKE) hun eo_list=$(eo_list) sxparu=$(sxparu) apostro=$(apostrofo)
vim : apostrofo ?= "aq"
vim :
cd oo && $(MAKE) vim eo_list=$(eo_list) sxparu=$(sxparu) apostro=$(apostrofo)
ordigo:
# $(MAKE) -C src
cd src && $(MAKE)
check_diff :
tools/slovnik src/vortoj.l3 > work/slovnik.tex
install:
cp work/*.hash work/*.aff $(install_dir)
install_vimspl:
install -d $(vim_spl_install_dir)
install -m 664 oo/vimspell/eo.utf-8.spl $(vim_spl_install_dir)
install_hunspl:
install -m 644 hunspell/eo.aff hunspell/eo.dic $(Hun_install_dir)
tar : clean
LC_CTYPE=C cd .. && tar cvf - ispell-eo | gzip -9v > espaff.tgz
dist : distclean
LC_CTYPE=C cd .. && \
tar --exclude-vcs --exclude oo --exclude *.elc -cvjf - ispell-eo>ispelleo.tar.bz2
distclean :
# $(MAKE) -C work distclean
rm -f *~
cd work && $(MAKE) distclean
cd oo && $(MAKE) distclean
rm -f doc/legu-min
clean :
# $(MAKE) -C work clean
cd work && $(MAKE) clean
cd oo && $(MAKE) clean