doc: write generated files to separate directory

This commit is contained in:
Thomas Kolb 2024-08-25 00:52:32 +02:00
parent c52d0766d7
commit 9d86bc3c97
2 changed files with 6 additions and 5 deletions

4
doc/.gitignore vendored
View file

@ -1,3 +1 @@
*.html out/
*.pdf
diag-mermaid-*

View file

@ -1,2 +1,5 @@
hamnet70.html: hamnet70.adoc OUT_DIR=out
asciidoctor -r asciidoctor-diagram $<
$(OUT_DIR)/hamnet70.html: hamnet70.adoc
mkdir -p $(OUT_DIR)
asciidoctor -D $(OUT_DIR) -r asciidoctor-diagram $<