From f272f083af3d135e82ecdf0ce4e340ee2782364b Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Wed, 15 May 2024 15:48:09 +0200 Subject: Add makefile, use latest datasets --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fb7f7aa --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +all: data/adjectives.json data/nouns.csv venv + +run: all + ./venv/bin/python kasus.py + +clean: + rm -rf data/adjectives.json data/nouns.csv 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 -- cgit v1.2.3