mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-02 10:08:29 +02:00
Switch doc build process to pandoc using a Makefile
This commit is contained in:
14
doc/Makefile
Normal file
14
doc/Makefile
Normal 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 $@
|
Reference in New Issue
Block a user