tatoeba.mk
1 | TATOEBA_LANGS=eng fra rus spa ukr |
2 | DICOS+=$(addprefix dicos/tatoeba_, $(addsuffix .nani, $(TATOEBA_LANGS))) |
3 | TATOEBA_DOWNLOADS+=$(addprefix dictionaries/tatoeba_, $(addsuffix .csv, sentences_detailed sentences_base tags user_languages)) |
4 | DOWNLOADS+=$(TATOEBA_DOWNLOADS) |
5 | |
6 | .PRECIOUS: dictionaries/tatoeba%.csv |
7 | |
8 | dictionaries/tatoeba%.csv: |
9 | wget https://downloads.tatoeba.org/exports/$$(basename $@ .csv | cut -c9-).tar.bz2 -O $@.tar.bz2 --continue |
10 | tar xf $@.tar.bz2 -C dictionaries |
11 | mv dictionaries/$$(basename $@ | cut -c9-) $@ |
12 | |
13 | dicos/tatoeba_%.nani: $(TATOEBA_DOWNLOADS) $(TATOEBA_MODULES) $(RADK_MODULES) |
14 | guile -L modules tools/tatoeba.scm $(shell basename $@ .nani | sed 's|^tatoeba_||g') $@ |
15 |