Skip to content

Commit 27c8ab1

Browse files
committed
Provide separate version protocol URLs
1 parent 6ba82f9 commit 27c8ab1

5 files changed

Lines changed: 2014 additions & 497 deletions

File tree

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11

22
.PHONY: all watch
33

4-
all: protocol.html diagrams
4+
PROTOCOL_HTMLS := $(patsubst %.md,%.html,$(wildcard protocol*.md))
55

6-
protocol.html: protocol.md style.css pandoc_template.html CHANGELOG.md
7-
( cat protocol.md | sed -e s/VERSIONTAG/$$(changer current-version)/ ; echo '# Changes' ; echo ''; cat CHANGELOG.md | sed -e s/#/##/g ) | pandoc \
6+
all: $(PROTOCOL_HTMLS) diagrams
7+
8+
$(PROTOCOL_HTMLS): %.html : %.md style.css pandoc_template.html CHANGELOG.md
9+
( cat $< | sed -e s/VERSIONTAG/$$(changer current-version)/ ; echo '# Changes' ; echo ''; cat CHANGELOG.md | sed -e s/#/##/g ) | pandoc \
810
-s -c style.css \
911
--metadata title="SimpleFIN Protocol" \
1012
--toc --toc-depth=2 \
@@ -25,4 +27,4 @@ watch:
2527
--wait \
2628
--drop \
2729
--command='make' \
28-
.
30+
.

0 commit comments

Comments
 (0)