forked from gvwilson/sql-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 742 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
include lib/mccole/mccole.mk
## databases: make required files
.PHONY: databases
databases : \
${DB}/assays.db \
${DB}/contact_tracing.db \
${DB}/lab_log.db \
${DB}/penguins.db
${DB}/assays.db: bin/create_assays_db.py
python $< $@
${DB}/contact_tracing.db: bin/create_contacts.py
python $< $@
${DB}/lab_log.db: bin/create_lab_log.py
python $< $@
${DB}/penguins.db : bin/create_penguins.py misc/penguins.csv
python $< $@ misc/penguins.csv
## psql_db: create PostgreSQL penguins database
.PHONY: psql_db
psql_db: bin/create_penguins_psql.py
python $< penguins misc/penguins.csv
## release: create a release
.PHONY: release
release:
@rm -rf sql-tutorial.zip
@zip -r sql-tutorial.zip \
db \
misc/penguins.csv \
src \
-x \*~