Skip to content

Commit e6021fb

Browse files
committed
More makefile tweaks
1 parent 58d5a89 commit e6021fb

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

Makefile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
GUIDES = $(notdir $(wildcard guides/*.md))
2-
HTML_GUIDES = $(addprefix build/html/,$(GUIDES:.md=.html))
1+
GUIDES = $(notdir $(wildcard guide/*.md))
2+
HTML_GUIDES = $(addprefix public/,$(GUIDES:.md=.html))
33

44
html: $(HTML_GUIDES)
55

6-
build/html/%.html : guides/%.md
7-
@mkdir -p build/html
8-
pandoc -s --toc $< -o $@
6+
public/%.html : guide/%.md
7+
pandoc \
8+
-5 \
9+
-c css/screen.css \
10+
-B template/header.html \
11+
-A template/footer.html \
12+
--toc \
13+
$< \
14+
-o $@
915

1016
clean:
11-
rm -rf build
12-
17+
rm -vf public/*.html

0 commit comments

Comments
 (0)