Skip to content

Commit fe010c8

Browse files
committed
Fix makefile
* add title * feature to just rebuild html and roff with force target
1 parent 83d4075 commit fe010c8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
PANDOC = pandoc
22
MANSECTION = 1
3-
NAME=testssl
3+
NAME = testssl
4+
TITLE = testssl.sh
45

56
all: $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html
67

8+
force: clean all
9+
710
clean:
811
rm -f $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html
912

1013
$(NAME).$(MANSECTION): $(NAME).$(MANSECTION).md
1114
$(PANDOC) --standalone --to man $(NAME).$(MANSECTION).md -o $@
1215

1316
$(NAME).$(MANSECTION).html: template.html $(NAME).$(MANSECTION).md
14-
$(PANDOC) --standalone --to html5 --template template.html $(NAME).$(MANSECTION).md -o $@
17+
$(PANDOC) --standalone --to html5 --template template.html --metadata title="$(TITLE)" $(NAME).$(MANSECTION).md -o $@

0 commit comments

Comments
 (0)