-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (61 loc) · 1.97 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
PIP = pip
UBUNTU_PACKAGES = libboost-all-dev \
libicu-dev \
liblingua-sentence-perl \
libxml-parser-perl \
libxml-writer-perl \
recode \
parallel \
pigz \
python3-pip \
pybind11-dev \
tidy
.PHONY: install
install: requirements.txt
apt install ${UBUNTU_PACKAGES}
pip install -r requirements.txt
${MAKE} install-opustools-perl
${MAKE} install-subalign
${MAKE} install-uplug
${MAKE} install-yasa
${MAKE} OPUS-admin
install-yasa:
git clone https://github.com/Helsinki-NLP/yasa.git
cd yasa && ./configure
${MAKE} -C yasa install
OpusTools-perl Uplug subalign:
git clone https://github.com/Helsinki-NLP/[email protected]
.PHONY: install-opustools-perl
install-opustools-perl: OpusTools-perl
cd OpusTools-perl && perl Makefile.PL
${MAKE} -C OpusTools-perl all
${MAKE} -C OpusTools-perl install
.PHONY: install-uplug
install-uplug: Uplug
cd Uplug/uplug-main && perl Makefile.PL
${MAKE} -C Uplug/uplug-main all
${MAKE} -C Uplug/uplug-main install
cd Uplug/uplug-hunalign-dics && perl Makefile.PL
${MAKE} -C Uplug/uplug-hunalign-dics all
${MAKE} -C Uplug/uplug-hunalign-dics install
cd Uplug/uplug-treetagger && perl Makefile.PL
${MAKE} -C Uplug/uplug-treetagger all
${MAKE} -C Uplug/uplug-treetagger install
.PHONY: install-subalign
install-subalign: subalign
cd subalign && perl Makefile.PL
${MAKE} -C subalign all
${MAKE} -C subalign install
OPUS-admin:
git clone [email protected]:Helsinki-NLP/OPUS-admin.git
YEAR ?= $(shell date +%Y)
doc/released-${YEAR}.txt:
find OPUS/corpus -name info.yaml | sort | \
xargs egrep -H 'release date:.* ${YEAR}$$' -A10 |\
egrep '(release date:|sentences:|tokens:|translation units:|\-\-)' |\
sed 's#OPUS/corpus/##' | sed 's#/info.yaml.# #' | tr '/' "\t" > $@
doc/released-fall-2022.txt:
find OPUS/corpus -name info.yaml | sort | \
xargs egrep -H 'release date:.* (Sep|Oct|Nov|Dec).*2022$$' -A10 |\
egrep '(release date:|sentences:|tokens:|translation units:|\-\-)' |\
sed 's#OPUS/corpus/##' | sed 's#/info.yaml.# #' | tr '/' "\t" > $@