-
Notifications
You must be signed in to change notification settings - Fork 222
/
Makefile
37 lines (28 loc) · 1.21 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
all: public/plan.md public/plan.html public/plan.docx public/plan.pdf
public/plan.md: build/_plan.md
mkdir -p public
mustache info.yml build/_plan.md > public/plan.md
public/plan.html: public/plan.md build/_pandoc.yml
pandoc --toc --toc-depth=3 --standalone --metadata-file=build/_pandoc.yml --output=public/plan.html public/plan.md
public/plan.docx: public/plan.md build/_pandoc.yml
pandoc --toc --toc-depth=3 --standalone --metadata-file=build/_pandoc.yml --output=public/plan.docx public/plan.md
public/plan.pdf: public/plan.md build/_pandoc.yml
pandoc --toc --toc-depth=3 --standalone --metadata-file=build/_pandoc.yml --output=public/plan.pdf public/plan.md
build/_pandoc.yml: info.yml pandoc.yml
mkdir -p build
mustache info.yml pandoc.yml > build/_pandoc.yml
build/_plan.md: *.md playbooks/*.md reference/*.md roles/*.md
mkdir -p build
cat during.md \
playbooks/index.md playbooks/playbook-*.md \
roles/index.md roles/role-*.md \
after.md about.md > build/_plan.md
todo:
grep --color --recursive \
--exclude='Makefile' --exclude='README.md' \
--exclude-dir='public' --exclude-dir='build' --exclude-dir='examples' \
'TODO:' .
clean:
rm -rf public
rm -rf build
.PHONY: todo clean