Makefile

changeset 1
30a1f29b3316
parent 0
d450dddcd926
--- a/Makefile	Mon Jun 07 21:32:05 2021 +0200
+++ b/Makefile	Mon Jun 07 21:42:09 2021 +0200
@@ -27,7 +27,7 @@
 PANDOC=         pandoc
 PANDOC_FLAGS=   -f markdown -t html5 --no-highlight --template templates/template.html
 MANDOC=         mandoc
-MANDOC_HTML=    -T html -O man=%N.html
+MANDOC_MD=      -T markdown
 MANDOC_PDF=     -T pdf
 DIST=           ${PROJECT}-${VERSION}.tar.xz
 WRKDIR=         ${PROJECT}-${VERSION}
@@ -46,7 +46,7 @@
 	${PANDOC} ${PANDOC_FLAGS} -o $@ $<
 
 .3.html:
-	${MANDOC} < $< ${MANDOC_HTML} > $@
+	${MANDOC} < $< ${MANDOC_MD} | ${PANDOC} ${PANDOC_FLAGS} -M title=${<F} -o $@
 
 .3.pdf:
 	${MANDOC} < $< ${MANDOC_PDF} > $@

mercurial