forked from slimtoolkit/slim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (17 loc) · 782 Bytes
/
Makefile
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
default: build_in_docker ## build docker-slim in docker by default
build_in_docker: ## build docker-slim in docker
rm -rfv bin
'$(CURDIR)/scripts/docker-builder.run.sh'
build: ## build docker-slim
'$(CURDIR)/scripts/src.build.sh'
fmt: ## format all golang files
'$(CURDIR)/scripts/src.fmt.sh'
help: ## prints out the menu of command options
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
inspect: ## report suspicious constructs and linting errors
'$(CURDIR)/scripts/src.inspect.sh'
tools: ## install necessary tools
'$(CURDIR)/scripts/tools.get.sh'
clean: ## clean up
'$(CURDIR)/scripts/src.cleanup.sh'
.PHONY: default help build_in_docker build fmt inspect tools clean