-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (34 loc) · 992 Bytes
/
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
#==[ Convenience targets ]======================================================
all: source target
clean:
rm -rf source
clobber: clean
rm -rf target
#==[ Python environment setup ]=================================================
venv:
python3 -m venv --prompt oetzit-pipeline $@
. $@/bin/activate && pip install -r requirements.txt
#==[ Source data retrieval ]====================================================
source/words.csv \
source/games.csv \
source/clues.csv \
source/shots.csv \
source/devices.csv:
mkdir -p $(dir $@)
bash scripts/k8s-psql-copy.sh $(notdir $(basename $@)) $@
source: \
source/words.csv \
source/games.csv \
source/clues.csv \
source/shots.csv \
source/devices.csv
#==[ Target data production ]===================================================
target/%.csv: source/%.csv
mkdir -p $(dir $@)
python3 scripts/prepare-data.py $< $@
target: \
target/words.csv \
target/games.csv \
target/clues.csv \
target/shots.csv \
target/devices.csv