-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 832 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-FileCopyrightText: the secureCodeBox authors
#
# SPDX-License-Identifier: Apache-2.0
DOCUMENTATION_DIR = $(shell pwd)
DIAGRAMS := $(shell find $(DOCUMENTATION_DIR) -type f -name '*.puml')
IMAGES := $(addsuffix .png, $(basename $(DIAGRAMS)))
all: help
.PHONY: puml
puml: $(IMAGES) ## Generate PlantUML images
.PHONY: clean
clean: ## Wipe node_modules
rm -rf $(DOCUMENTATION_DIR)/node_modules
.PHONY: install
install: ## Install Docusaurus stuff. (Needed once before you invoke start target).
npm install
.PHONY: start
start: ## Start local Docusaurus. (Visit http://localhost:3000)
npm start
%.png: %.puml
plantuml -tpng $^
.PHONY: help
help: ## Display this help screen.
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'