Julien Dehos 8 лет назад
Родитель
Сommit
3e4f96dd18
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      www/Makefile

+ 3 - 2
www/Makefile

@@ -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: