Skip to content

Commit

Permalink
Merge pull request juju#13821 from tlm/makefile-output
Browse files Browse the repository at this point in the history
Reduce the output of make for install/build
  • Loading branch information
wallyworld authored Mar 9, 2022
2 parents 64c83e5 + a0cfd2b commit 68afff8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@ define run_go_build
$(eval ARCH = $(word 2,$(subst _, ,$*)))
$(eval BBIN_DIR = ${BUILD_DIR}/${OS}_${ARCH}/bin)
@@mkdir -p ${BBIN_DIR}
env GOOS=${OS} GOARCH=${ARCH} go build -mod=$(JUJU_GOMOD_MODE) -o ${BBIN_DIR} -tags "$(BUILD_TAGS)" $(COMPILE_FLAGS) $(LINK_FLAGS) -v ${PACKAGE}
@echo "Building ${PACKAGE} for ${OS}/${ARCH}"
@env GOOS=${OS} GOARCH=${ARCH} go build -mod=$(JUJU_GOMOD_MODE) -o ${BBIN_DIR} -tags "$(BUILD_TAGS)" $(COMPILE_FLAGS) $(LINK_FLAGS) -v ${PACKAGE}
endef

define run_go_install
go install -mod=$(JUJU_GOMOD_MODE) -tags "$(BUILD_TAGS)" $(COMPILE_FLAGS) $(LINK_FLAGS) -v ${PACKAGE}
@echo "Installing ${PACKAGE}"
@go install -mod=$(JUJU_GOMOD_MODE) -tags "$(BUILD_TAGS)" $(COMPILE_FLAGS) $(LINK_FLAGS) -v ${PACKAGE}
endef

default: build
Expand Down

0 comments on commit 68afff8

Please sign in to comment.