-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (24 loc) · 718 Bytes
/
Makefile
File metadata and controls
38 lines (24 loc) · 718 Bytes
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
CC = python3
CFLAGS = -m mwb
DEBUG =
TARGET = /usr/share/nginx/midl2021
HOST = castelbrazelbub.net:
.PHONY: clean generate generate_sessions deploy FORCE
all: generate $(TARGET)
papers.json: long_papers.csv short_papers.csv program.html
$(CC) csv2json.py
generate: pages/papers/paper.template papers.json
$(CC) generate_papers.py $^ pages/ static/
generate_sessions: pages/sessions/session.template papers.json
$(CC) generate_sessions.py $^ pages/sessions
pages/program.md: pages/program.template papers.json
$(CC) fill_template.py $^ $@
$(TARGET): FORCE pages/program.md
rm -rf $@
$(CC) $(CFLAGS) . $@ $(DEBUG)
# chmod -R +x $@
deploy:
rsync -rv $(TARGET) $(HOST)
clean:
rm -rf $(TARGET)
FORCE: