-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (38 loc) · 798 Bytes
/
Makefile
File metadata and controls
48 lines (38 loc) · 798 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
include Makefile.defs
.PHONY: all
all: $(TARGET)
.PHONY: $(TARGET)
$(TARGET):
make -C cmd all
.PHONY: install
install: $(TARGET)
make -C cmd install
.PHONY: clean
clean:
make -C cmd clean
.PHONY: test
test:
$(GO) test $(GO_TEST_FLAGS) ./...
.PHONY: test-all
test-all: test
make -C flow test
make -C cmd test
.PHONY: bench
bench:
$(GO) test $(GO_BENCH_FLAGS) $$($(GO) list ./...)
.PHONY: bench-all
bench-all: bench
make -C flow bench
make -C cmd bench
.PHONY: check
ifneq (,$(findstring $(GOLANGCILINT_WANT_VERSION),$(GOLANGCILINT_VERSION)))
check:
golangci-lint run
else
check:
docker run --rm -v `pwd`:/app -w /app docker.io/golangci/golangci-lint:v$(GOLANGCILINT_WANT_VERSION) golangci-lint run
endif
.PHONY: check-all
check-all: check
make -C flow check
make -C cmd check