testssl.sh/doc/Makefile

15 lines
465 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 $(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 $@