-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (27 loc) · 881 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
CC = python3
CFLAGS = -m mwb
DEBUG =
TARGET = /usr/share/nginx/midl
HOST = beta.2020.midl.io:
PORT = 484
.PHONY: clean generate deploy FORCE
all: generate $(TARGET)
papers_time.json: papers.json pages/scientific-program.template
$(CC) fill_times.py $^ $@
generate: pages/papers/paper.template papers_time.json
$(CC) generate_papers.py $^ pages/ static/
# pages/program/full-papers.md: pages/program/full-papers.template papers.json
# $(CC) fill_template.py $^ full $@
# pages/program/short-papers.md: pages/program/short-papers.template papers.json
# $(CC) fill_template.py $^ short $@
pages/scientific-program.md: pages/scientific-program.template papers.json
$(CC) fill_template.py $^ $@
$(TARGET): FORCE pages/scientific-program.md
rm -rf $@
$(CC) $(CFLAGS) . $@ $(DEBUG)
# chmod -R +x $@
deploy:
rsync -rv $(TARGET) $(HOST)
clean:
rm -rf $(TARGET)
FORCE: