Makefile 419 Bytes
Newer Older
Daniel Kullmann's avatar
Daniel Kullmann committed
1 2
.PHONY: coronavirus-data.csv

3 4 5
build: public generate-json-files build-no-data

build-no-data: public
6 7
	cp -r lib public/
	cp index.html public/index.html
8

Daniel Kullmann's avatar
Daniel Kullmann committed
9 10 11
public:
	mkdir -p public

12 13 14
coronavirus-data.csv:
	curl --silent -o coronavirus-data.csv  https://opendata.ecdc.europa.eu/covid19/casedistribution/csv/

Daniel Kullmann's avatar
Daniel Kullmann committed
15
generate-json-files: public coronavirus-data.csv
16
	python3 ./generate-json-files.py --output-file public/data.json