2021-12-23 22:53:36 +01:00
|
|
|
PANDOC = pandoc
|
|
|
|
MANSECTION = 1
|
2022-04-01 15:08:55 +02:00
|
|
|
NAME = testssl
|
|
|
|
TITLE = testssl.sh
|
2021-12-23 22:53:36 +01:00
|
|
|
|
|
|
|
all: $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html
|
|
|
|
|
2022-04-01 15:08:55 +02:00
|
|
|
force: clean all
|
|
|
|
|
2021-12-23 22:53:36 +01:00
|
|
|
clean:
|
|
|
|
rm -f $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html
|
|
|
|
|
|
|
|
$(NAME).$(MANSECTION): $(NAME).$(MANSECTION).md
|
2022-01-07 22:23:21 +01:00
|
|
|
$(PANDOC) --standalone --to man $(NAME).$(MANSECTION).md -o $@
|
2021-12-23 22:53:36 +01:00
|
|
|
|
|
|
|
$(NAME).$(MANSECTION).html: template.html $(NAME).$(MANSECTION).md
|
2022-04-01 15:08:55 +02:00
|
|
|
$(PANDOC) --standalone --to html5 --template template.html --metadata title="$(TITLE)" $(NAME).$(MANSECTION).md -o $@
|