blob: 2271a4051a1493a7a663ef568409277c17e2ce0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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 $@
|