-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 775 Bytes
/
Makefile
File metadata and controls
26 lines (20 loc) · 775 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
PROJECT_NAME := "tcpbutcher"
PKG := "github.com/rwxd/$(PROJECT_NAME)"
PKG_LIST := $(shell go list ${PKG}/...)
GO_FILES := $(shell find . -name '*.go' | grep -v _test.go)
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
setup: ## Setup required things
@go get -v -d ./...
@python3 -m pip install -r requirements-dev.txt
@pre-commit install
puml-svg: ## render plantuml diagrams as svg
cd docs/
find . -name "*.puml" -exec plantuml -tsvg {} \;
puml-png: ## render plantuml diagrams as png
cd docs/
find . -name "*.puml" -exec plantuml -tsvg {} \;
pre-commit-all: ## run pre-commit on all files
pre-commit run --all-files
pre-commit: ## run pre-commit
pre-commit run