SUFFIXES = .dot .svg .inc .txt .adoc .pdf .html
+ATTRIBUTES=--attribute="revdate=$(DOC_DATE)" --attribute="version=$(VERSION)"
+
.dot.svg:
dot -Tsvg -o$@ $*.dot
sed -e 's/^[ ]*//' -e 's/^\\//' $*.inc > $@
.adoc.html:
- asciidoctor -b html5 $*.adoc
+ asciidoctor $(ATTRIBUTES) -b html5 $*.adoc
.adoc.pdf:
- asciidoctor-pdf $*.adoc
+ asciidoctor-pdf $(ATTRIBUTES) $*.adoc
all: $(HTML) $(PDF)