-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (26 loc) · 1.67 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
data:
mkdir -p data
output:
mkdir -p output
dirs: data output
install: dirs
poetry env use python3.9
poetry install
jupyter: dirs
poetry run jupyter-lab
jupyter-clean:
poetry run jupyter nbconvert --to notebook --ClearOutputPreprocessor.enabled=True --inplace *.ipynb
gifs: images/ev_highways_CA_J1772COMBO_415.gif images/ev_highways_CA_TESLA_415.gif images/ev_highways_US_J1772COMBO_415.gif images/ev_highways_US_TESLA_415.gif
images/ev_highways_CA_J1772COMBO_415.gif: output/monthly_ev_highways_CA_J1772COMBO_415_*.png
convert -delay 25 -loop 1 output/monthly_ev_highways_CA_J1772COMBO_415_*.png -annotate +1120+1070 '@canadianveggie' images/ev_highways_CA_J1772COMBO_415.gif
images/ev_highways_CA_TESLA_415.gif: output/monthly_ev_highways_CA_TESLA_415_*.png
convert -delay 25 -loop 1 output/monthly_ev_highways_CA_TESLA_415_*.png -annotate +1120+1070 '@canadianveggie' images/ev_highways_CA_TESLA_415.gif
images/ev_highways_US_J1772COMBO_415.gif: output/monthly_ev_highways_US_J1772COMBO_415_*.png
convert -delay 25 -loop 1 output/monthly_ev_highways_US_J1772COMBO_415_*.png -annotate +850+830 '@canadianveggie' images/ev_highways_US_J1772COMBO_415.gif
images/ev_highways_US_TESLA_415.gif: output/monthly_ev_highways_US_TESLA_415_*.png
convert -delay 25 -loop 1 output/monthly_ev_highways_US_TESLA_415_*.png -annotate +850+830 '@canadianveggie' images/ev_highways_US_TESLA_415.gif
annotated: $(patsubst output/%,images/%,$(wildcard output/ev_highways_*.png))
images/ev_highways_CA_%.png: output/ev_highways_CA_%.png
convert $< -annotate +1120+1070 '@canadianveggie' $@
images/ev_highways_US_%.png: output/ev_highways_US_%.png
convert $< -annotate +850+830 '@canadianveggie' $@