|
@@ -1,3 +1,4 @@
|
|
|
+SED = $(shell which -s gsed && echo gsed || echo sed)
|
|
|
|
|
|
.PHONY: all clean
|
|
|
|
|
@@ -7,10 +8,10 @@ before.html: before.md
|
|
|
pandoc -o $@ $<
|
|
|
|
|
|
$(WWW_ROOT)/index.html: index.md
|
|
|
- sed -r 's/#include (.*)/cat \1\n/e' $< | pandoc --template template.html --toc --toc-depth 1 --include-before before.html -s -o $@
|
|
|
+ $(SED) -r 's/#include (.*)/cat \1\n/e' $< | pandoc --template template.html --toc --toc-depth 1 --include-before before.html -s -o $@
|
|
|
|
|
|
$(WWW_ROOT)/index_slides.html: index.md
|
|
|
- sed -r 's/#include (.*)/cat \1\n/e' $< | pandoc --template template_slidy.html --toc-depth 1 -t slidy -s -o $@
|
|
|
+ $(SED) -r 's/#include (.*)/cat \1\n/e' $< | pandoc --template template_slidy.html --toc-depth 1 -t slidy -s -o $@
|
|
|
|
|
|
clean:
|
|
|
|