-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (27 loc) · 1.11 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
PREFIX=/usr/local
LIBDIR=$(PREFIX)/lib/depccg
SHAREDIR=$(PREFIX)/share/depccg
MODELDIR=models
install: lib depccgrc
install -d $(SHAREDIR)
install -d $(SHAREDIR)/tri_headfirst
install -d $(SHAREDIR)/ja_headfinal
install -d $(SHAREDIR)/lemmatizer
install -m 644 models/tri_headfirst/* $(SHAREDIR)/tri_headfirst
install -m 644 models/ja_headfinal/* $(SHAREDIR)/ja_headfinal
install -m 644 depccgrc $(HOME)/.depccgrc
install -m 644 lemmatizer/stemmer.jar $(SHAREDIR)/lemmatizer/stemmer.jar
${MODELDIR}:
sh ./download_en_model.sh
sh ./download_ja_model.sh
depccgrc:
echo "(en (" > depccgrc
echo " (lib ${LIBDIR})" >> depccgrc
echo " (share ${SHAREDIR})" >> depccgrc
echo " (model ${SHAREDIR}/tri_headfirst/)" >> depccgrc
echo "))" >> depccgrc
echo "(ja (" >> depccgrc
echo " (lib ${LIBDIR})" >> depccgrc
echo " (share ${SHAREDIR})" >> depccgrc
echo " (model ${SHAREDIR}/ja_headfinal)" >> depccgrc
echo "))" >> depccgrc