Skip to content

Commit

Permalink
#8 Add make target to generate PlantUML
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Strittmatter <[email protected]>
  • Loading branch information
Weltraumschaf committed May 4, 2022
1 parent 5aeacc6 commit 7987366
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
PROJECT_DIR = $(shell pwd)
TOOLS_DIR = $(PROJECT_DIR)/tools
COMPOSE_FILES = $(PROJECT_DIR)/src/main/docker
DIAGRAMS := $(shell find $(PROJECT_DIR) -type f -name '*.puml')
IMAGES := $(addsuffix .png, $(basename $(DIAGRAMS)))

all: help

Expand Down Expand Up @@ -167,6 +169,16 @@ clean: ## Wipes all local built artifacts.
$(PROJECT_DIR)/gradlew clean
rm -rf node_modules/

.PHONY: puml
puml: $(IMAGES) ## Generate PlantUML images

%.png: %.puml
plantuml -tpng $^

.PHONY: start-docs
start-docs: puml ## Start Mkdocs server locally
mkdocs serve

.PHONEY: help
help: ## Display this help screen.
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
Expand Down

0 comments on commit 7987366

Please sign in to comment.