We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfd7a06 commit c989158Copy full SHA for c989158
1 file changed
Makefile
@@ -1,6 +1,7 @@
1
GO ?= go
2
COVERAGE_THRESHOLD ?= 95
3
GOFMT_TARGETS := cmd internal
4
+MAIN_PKG := ./cmd/git-real
5
CACHE_DIR ?= $(CURDIR)/.cache
6
7
export GOCACHE ?= $(CACHE_DIR)/go-build
@@ -22,7 +23,7 @@ LDFLAGS := -s -w \
22
23
.PHONY: build fmt fmt-check lint typecheck deadcode test test-race coverage vuln actionlint check
24
25
build:
- $(GO) build -trimpath -buildvcs=true -ldflags='$(LDFLAGS)' -o git-real ./cmd/git-real
26
+ $(GO) build -trimpath -buildvcs=true -ldflags='$(LDFLAGS)' -o git-real $(MAIN_PKG)
27
28
fmt:
29
$(GO) fmt ./...
@@ -46,7 +47,7 @@ typecheck:
46
47
$(GO) test -run '^$$' ./...
48
49
deadcode:
- $(GO) tool deadcode ./cmd/git-real
50
+ $(GO) tool deadcode $(MAIN_PKG)
51
52
test:
53
$(GO) test ./...
0 commit comments