forked from hupe1980/gotoaws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (31 loc) · 784 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
26
27
28
29
30
31
32
33
34
35
36
37
38
PROJECTNAME=$(shell basename "$(PWD)")
# Go related variables.
# Make is verbose in Linux. Make it silent.
MAKEFLAGS += --silent
.PHONY: setup
## setup: Setup installes dependencies
setup:
go mod tidy -compat=1.17
.PHONY: test
## test: Runs go test with default values
test:
go test -v -race -count=1 ./...
.PHONY: build
## build: Builds a beta version of gotoaws
build:
go build -o dist/
.PHONY: ci
## ci: Run all the tests and code checks
ci: build test
.PHONY: run
## run: Runs gotoaws
run:
go run main.go eks exec --cluster gotoaws --role cluster-admin --pod nginx -- date
.PHONY: help
## help: Prints this help message
help: Makefile
@echo
@echo " Choose a command run in "$(PROJECTNAME)":"
@echo
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo