Fix makefile

* add title
* feature to just rebuild html and roff with force target
This commit is contained in:
Dirk 2022-04-01 15:08:55 +02:00
parent 83d4075465
commit fe010c87d2
1 changed files with 5 additions and 2 deletions

View File

@ -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 $@