Skip to content

Commit 6cbe558

Browse files
authored
build: Reduce more redundant output (tensorchord#1502)
* build: Reduce more redundant output Signed-off-by: tison <[email protected]> * prompt on local build Signed-off-by: tison <[email protected]> --------- Signed-off-by: tison <[email protected]>
1 parent fa036bc commit 6cbe558

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

+6-4
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,18 @@ addlicense-install:
134134
go install github.com/google/addlicense@latest
135135

136136
build-local:
137-
@for target in $(TARGETS); do \
138-
CGO_ENABLED=$(CGO_ENABLED) go build -trimpath -v -o $(OUTPUT_DIR)/$${target} \
137+
@for target in $(TARGETS); do \
138+
echo "Building $${target} ..."; \
139+
CGO_ENABLED=$(CGO_ENABLED) go build -trimpath -o $(OUTPUT_DIR)/$${target} \
139140
-ldflags "-s -w -X $(ROOT)/pkg/version.version=$(VERSION) \
140141
-X $(ROOT)/pkg/version.buildDate=$(BUILD_DATE) \
141142
-X $(ROOT)/pkg/version.gitCommit=$(GIT_COMMIT) \
142-
-X $(ROOT)/pkg/version.gitTreeState=$(GIT_TREE_STATE) \
143+
-X $(ROOT)/pkg/version.gitTreeState=$(GIT_TREE_STATE) \
143144
-X $(ROOT)/pkg/version.gitTag=$(GIT_LATEST_TAG) \
144145
-X $(ROOT)/pkg/version.developmentFlag=true" \
145-
$(CMD_DIR)/$${target}; \
146+
$(CMD_DIR)/$${target}; \
146147
done
148+
@echo "Build envd successfully!"
147149

148150
pypi-build: clean
149151
@python3 setup.py sdist bdist_wheel

0 commit comments

Comments
 (0)