Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More makefile tweaks

  • Loading branch information...
commit e6021fb557702b312bc3d35102809189f6dffc74 1 parent 58d5a89
@felixge authored
Showing with 12 additions and 7 deletions.
  1. +12 −7 Makefile
View
19 Makefile
@@ -1,12 +1,17 @@
-GUIDES = $(notdir $(wildcard guides/*.md))
-HTML_GUIDES = $(addprefix build/html/,$(GUIDES:.md=.html))
+GUIDES = $(notdir $(wildcard guide/*.md))
+HTML_GUIDES = $(addprefix public/,$(GUIDES:.md=.html))
html: $(HTML_GUIDES)
-build/html/%.html : guides/%.md
- @mkdir -p build/html
- pandoc -s --toc $< -o $@
+public/%.html : guide/%.md
+ pandoc \
+ -5 \
+ -c css/screen.css \
+ -B template/header.html \
+ -A template/footer.html \
+ --toc \
+ $< \
+ -o $@
clean:
- rm -rf build
-
+ rm -vf public/*.html
Please sign in to comment.
Something went wrong with that request. Please try again.