mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-28 04:19:44 +01:00
Fix makefile
* add title * feature to just rebuild html and roff with force target
This commit is contained in:
parent
83d4075465
commit
fe010c87d2
@ -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 $@
|
||||
|
Loading…
Reference in New Issue
Block a user