-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
40 lines (32 loc) · 968 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
# Set Make variables from .env file
include .env
export
# Pull and clean all setlist data from ATU
pull:
python pull.py
python clean.py
# Upload clean CSV data to a MySQL database
upload:
python upload.py --path atu_cleaned --method args --host $(HOST) \
--database $(DATABASE) --u $(USERNAME) -p $(PASSWORD)
# Update the setlist data in a MySQL database
update:
python update.py --method args --host $(HOST) --database $(DATABASE) \
--u $(USERNAME) -p $(PASSWORD)
# Make song codes
codes:
python codes.py -s atu_cleaned/songs.pickle -c data/song_codes.csv -l 5
# Crete tex files from a MySQL database
.PHONY: tex
tex:
python compile.py --method args --host $(HOST) --database $(DATABASE) \
--u $(USERNAME) -p $(PASSWORD)
# Compile tex files to create book PDF
pdf:
cd tex && pdflatex -shell-escape -extra-mem-bot=1000000000 \
-interaction=nonstopmode umphbase.tex
# Crete tex file and compile PDF
book: tex pdf
# Test
test:
python -m pytest tests