Mercurial > libbase64-www
changeset 1:30a1f29b3316
misc: use mandoc to markdown
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 07 Jun 2021 21:42:09 +0200 |
parents | d450dddcd926 |
children | 8eba72f28421 |
files | Makefile index.md |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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} > $@
--- a/index.md Mon Jun 07 21:32:05 2021 +0200 +++ b/index.md Mon Jun 07 21:42:09 2021 +0200 @@ -6,7 +6,7 @@ ======================================== The `libbase64` is a minimal C library to decode and encore base64 in pure C89. -It does not depend on anything no portable except C standard library. +It does not depend on anything not portable except C standard library. It consists of: