summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 695f3698afbd119882c2ec2e26ff3521af86d3d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
run: all
	./venv/bin/python kasus.py

all: data/adjectives.json data/nouns.csv venv

clean:
	rm -rf data/adjectives.json data/nouns.csv data/dewiktionary-latest-pages-articles.xml venv 

data/adjectives.json: data/adj-query.sh data/grab-dump.sh
	cd data; ./adj-query.sh

data/nouns.csv: data/noun-query.sh data/grab-dump.sh data/common-nouns
	cd data; ./noun-query.sh

venv: requirements.txt
	python -m venv venv
	./venv/bin/pip install -r requirements.txt

.PHONY: all run clean