Switch doc build process to pandoc using a Makefile

This commit is contained in:
Emmanuel Bouthenot
2021-12-23 22:53:36 +01:00
parent 4a358e0489
commit dc8f7d9b9e
5 changed files with 92 additions and 1303 deletions

14
doc/Makefile Normal file
View File

@ -0,0 +1,14 @@
PANDOC = pandoc
MANSECTION = 1
NAME=testssl
all: $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html
clean:
rm -f $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html
$(NAME).$(MANSECTION): $(NAME).$(MANSECTION).md
$(PANDOC) --standalone $(PANDOCFLAGS) --to man $(NAME).$(MANSECTION).md -o $@
$(NAME).$(MANSECTION).html: template.html $(NAME).$(MANSECTION).md
$(PANDOC) --standalone $(PANDOCFLAGS) --to html5 --template template.html $(NAME).$(MANSECTION).md -o $@