-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (36 loc) · 671 Bytes
/
Makefile
File metadata and controls
49 lines (36 loc) · 671 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $(MAKECMDGOALS)
.PHONY: all
all: dot
RUN := go run build.go
# go build -o bin/$(BINARY) cmd/dot
.PHONY: dot
dot:
$(RUN) check install
# .PHONY: vendor
# vendor:
# $(RUN) vendor -only
.PHONY: test
test:
# go test ./cmd/... ./internal/...
$(RUN) -v test
.PHONY: coverage
coverage:
$(RUN) test:coverage
.PHONY: integration
integration:
$(RUN) test:integration
.PHONY: docker
docker:
OS=$(OS) $(RUN) $@
COMMANDS := build check docs install release snapshot
.PHONY: $(COMMANDS)
$(COMMANDS):
$(RUN) $@
# MAKEFLAGS += --silent
ifndef VERBOSE
.SILENT:
endif
# # https://www.gnu.org/software/make/manual/make.html#Last-Resort
# .DEFAULT:
# %::
# $(RUN) $@