-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 1.03 KB
/
Makefile
File metadata and controls
36 lines (29 loc) · 1.03 KB
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
# Disable all the default make stuff
MAKEFLAGS += --no-builtin-rules
.SUFFIXES:
## Display a list of the documented make targets
.PHONY: help
help:
@echo Documented Make targets:
@perl -e 'undef $$/; while (<>) { while ($$_ =~ /## (.*?)(?:\n# .*)*\n.PHONY:\s+(\S+).*/mg) { printf "\033[36m%-30s\033[0m %s\n", $$2, $$1 } }' $(MAKEFILE_LIST) | sort
.PHONY: .FORCE
.FORCE:
build:
go build ./cmd/score-implementation-sample/
test:
go vet ./...
go test ./... -cover -race
test-app: build
./score-implementation-sample --version
./score-implementation-sample init
cat score.yaml
./score-implementation-sample generate score.yaml
cat manifests.yaml
build-container:
docker build -t score-implementation-sample:local .
test-container: build-container
docker run --rm score-implementation-sample:local --version
docker run --rm -v .:/score-implementation-sample score-implementation-sample:local init
cat score.yaml
docker run --rm -v .:/score-implementation-sample score-implementation-sample:local generate score.yaml
cat manifests.yaml