From fe010c87d2f45c052d000e6d5fa6a91c7bbc058e Mon Sep 17 00:00:00 2001 From: Dirk Date: Fri, 1 Apr 2022 15:08:55 +0200 Subject: [PATCH] Fix makefile * add title * feature to just rebuild html and roff with force target --- doc/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index acdc09e..2271a40 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,9 +1,12 @@ PANDOC = pandoc MANSECTION = 1 -NAME=testssl +NAME = testssl +TITLE = testssl.sh all: $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html +force: clean all + clean: rm -f $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html @@ -11,4 +14,4 @@ $(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 $@ + $(PANDOC) --standalone --to html5 --template template.html --metadata title="$(TITLE)" $(NAME).$(MANSECTION).md -o $@