testssl.sh/doc/Makefile

15 lines
435 B
Makefile

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 --to man $(NAME).$(MANSECTION).md -o $@
$(NAME).$(MANSECTION).html: template.html $(NAME).$(MANSECTION).md
$(PANDOC) --standalone --to html5 --template template.html $(NAME).$(MANSECTION).md -o $@