-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 1.01 KB
/
Makefile
File metadata and controls
38 lines (27 loc) · 1.01 KB
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
.PHONY: clean, book, docs
build_dir = build
archive = workshop.tar.gz
pdf = flymetothemoon.pdf
files = AGC bring-your-own moonlander-ast moonlander-game moonlander-gp moonlander-visualisation nadezhda presentation $(pdf) cargo_home README.md help doc
docs = README.html help/README.html help/FIRST_TIME_RUSTER.html help/STRAIGHT_HINTS.html help/TWISTED_HINTS.html \
moonlander-game/README.html \
moonlander-gp/README.html \
moonlander-ast/README.html \
moonlander-visualisation/README.html \
nadezhda/README.html
all: $(build_dir)/$(archive) docs doc
docs: $(docs)
$(build_dir)/$(archive): book $(build_dir) $(files)
tar cvfz $(build_dir)/$(archive) $(files)
%.html: %.md $(CURDIR)/Makefile
pandoc -s -S --toc -H $(CURDIR)/build/github-pandoc.html.inc $< -o $@
$(build_dir):
mkdir -p $(build_dir)
cargo_home:
mkdir -p cargo_home && build/fetch-deps
clean:
rm -rf $(build_dir)
book:
curl -L -X GET "https://leanpub.com/s/$(BOOK_ID)?api_key=$(LEANPUB_API_KEY)" -o $(pdf)
doc:
build/create-docs