mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-29 12:59:44 +01:00
fe010c87d2
* add title * feature to just rebuild html and roff with force target
18 lines
502 B
Makefile
18 lines
502 B
Makefile
PANDOC = pandoc
|
|
MANSECTION = 1
|
|
NAME = testssl
|
|
TITLE = testssl.sh
|
|
|
|
all: $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html
|
|
|
|
force: clean all
|
|
|
|
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 --metadata title="$(TITLE)" $(NAME).$(MANSECTION).md -o $@
|