Skip to content

Commit 3a0d734

Browse files
committed
update Makefile
1 parent 12faa45 commit 3a0d734

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RELEASE_LDFLAGS=-X '${GO_PKG}/pkg/config.BuildType=release'
2828
RELEASE_GCFLAGS=-trimpath
2929

3030
# Build targets
31+
.PHONY: build build-debug build-release
3132
build-debug:
3233
go build ${GOFLAGS} -o ${BINARY_NAME} -gcflags="${DEBUG_GCFLAGS}" -ldflags "${COMMON_LDFLAGS} ${ENV_LDFLAGS} ${DEBUG_LDFLAGS}"
3334

@@ -38,6 +39,7 @@ build-release:
3839
build: build-release
3940

4041
# Install targets
42+
.PHONY: install install-debug install-release
4143
install-debug:
4244
go install -gcflags="${DEBUG_GCFLAGS}" -ldflags "${COMMON_LDFLAGS} ${ENV_LDFLAGS} ${DEBUG_LDFLAGS}" .
4345

@@ -48,6 +50,7 @@ install-release:
4850
install: install-release
4951

5052
# Test targets
53+
.PHONY: test test-unit test-integration test-e2e clean
5154
test:
5255
go test ./...
5356

0 commit comments

Comments
 (0)