-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (32 loc) · 1.3 KB
/
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
41
42
43
44
ENV = development
BUNDLE = bundle
NANOC = $(BUNDLE) exec nanoc --env=$(ENV)
PORT = 4000
WGET = wget --quiet
export ENV
love:
@$(NANOC) compile
compile: love
autocompile: export NANOC_ENV = $(ENV)
autocompile:
@$(BUNDLE) exec guard start
server:
@$(NANOC) view --port $(PORT) --live-reload
autoserver:
@$(NANOC) live --port $(PORT) --live-reload
deploy: ENV = production
deploy: compile
@$(NANOC) deploy --target default
content/markdowns:
rclone copy gdrive:"Inimvara [jagatud]/Inimvara_tekstid/kestame md failid" content
content/discussions.csv:
$(WGET) "https://docs.google.com/spreadsheets/d/e/2PACX-1vTRk6FqIE82qy3Fb7luvJsBVhqV1USNFCc-Zc7MGlxiRe1kLWKeXT5li-iywqa22A2eAbpijj7yFCv1/pub?gid=690582168&single=true&output=csv" -O- | sed -E 's/'"\r"'$$//;s/,[^,]*?$$//;$$a\' > "$@"
content/problems.csv:
$(WGET) "https://docs.google.com/spreadsheets/d/e/2PACX-1vRNwMwDywEYPduSijldLYntzekHoMqkFqBaK9MUbGUpE63HG2bOyT7pJ_0IUNpsfVgm0dtFPqb8GYb_/pub?gid=1680285954&single=true&output=csv" -O "$@"
content/solutions.csv:
$(WGET) "https://docs.google.com/spreadsheets/d/e/2PACX-1vS_4UJeS5zACFA5o_8iYW3EvL0JUg1WHpQPVCof7o6X93RVByOd5pKf0IbIa9PZ0ic4k7EEI3PFYVqX/pub?gid=142617889&single=true&output=csv" -O "$@"
.PHONY: love
.PHONY: compile autocompile
.PHONY: server autoserver
.PHONY: content/markdowns
.PHONY: deploy