Julien Dehos il y a 7 ans
Parent
commit
3e4f96dd18
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  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: