-
-
Notifications
You must be signed in to change notification settings - Fork 735
/
Makefile
42 lines (29 loc) · 1.15 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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_m1_in_docker:
rm -rfv bin
'$(CURDIR)/scripts/docker-builder-m1.run.sh'
build: ## build docker-slim
'$(CURDIR)/scripts/src.build.sh'
build_m1: ## build docker-slim
'$(CURDIR)/scripts/src.build.m1.sh'
build_dev: ## build docker-slim for development (quickly), in bin/
'$(CURDIR)/scripts/src.build.quick.sh'
fmt: ## format all golang files
'$(CURDIR)/scripts/src.fmt.sh'
help: ## prints out the menu of command options
@awk -F ':.*?## ' '/^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
inspect: ## report suspicious constructs and linting errors
'$(CURDIR)/scripts/src.inspect.sh'
tools: ## install necessary tools
'$(CURDIR)/scripts/tools.get.sh'
## run unit tests
test: export GO_TEST_FLAGS ?=
test:
'$(CURDIR)/scripts/src.test.sh'
clean: ## clean up
'$(CURDIR)/scripts/src.cleanup.sh'
include $(CURDIR)/test/e2e-tests.mk
.PHONY: default help build_in_docker build_m1_in_docker build build_m1 build_dev fmt inspect tools test clean