From db077dd3f7696902eca2fffc838b9802550a8913 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Mon, 28 Dec 2015 20:03:52 +0000 Subject: [PATCH] Use portable rules to build the documentation. --- Makefile.am | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 6f1b6866..7dd9f9a8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -50,15 +50,19 @@ distclean-local: rm -rf espeak-data/phondata-manifest rm -f espeak-data/*_dict -##### documentation: +##### custom rules: -%.html: %.md _layouts/webpage.html +SUFFIXES=.html .md .ronn + +.md.html: _layouts/webpage.html cat $< | sed -e 's/\.md)/.html)/g' -e 's/\.ronn/.html/g' | \ kramdown --template _layouts/webpage.html > $@ -%.html: %.ronn +.ronn.html: ronn --html $< +##### documentation: + src/espeak-ng.1: src/espeak-ng.1.ronn ronn --roff $<