forked from sam701/rtask
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (16 loc) · 774 Bytes
/
Copy pathMakefile
File metadata and controls
20 lines (16 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: arc42 arc42-html arc42-pdf
DOCS_DIR := docs/arc42
OUTPUT_DIR := $(DOCS_DIR)/output
DOCKER_IMAGE := asciidoctor/docker-asciidoctor
DOCKER_RUN := docker run --rm --user $$(id -u):$$(id -g) -v $(CURDIR)/$(DOCS_DIR):/documents $(DOCKER_IMAGE)
arc42: arc42-html arc42-pdf ## Generiert arc42-Dokumentation als HTML und PDF
arc42-html: ## Generiert arc42 als HTML
@mkdir -p $(OUTPUT_DIR)
$(DOCKER_RUN) asciidoctor -r asciidoctor-diagram \
-a plantuml-format=svg -D /documents/output /documents/arc42.adoc
@echo "=> $(OUTPUT_DIR)/arc42.html"
arc42-pdf: ## Generiert arc42 als PDF
@mkdir -p $(OUTPUT_DIR)
$(DOCKER_RUN) asciidoctor-pdf -r asciidoctor-diagram \
-a plantuml-format=svg -D /documents/output /documents/arc42.adoc
@echo "=> $(OUTPUT_DIR)/arc42.pdf"