refactor(Makefile): add build tags

This commit is contained in:
zhourong 2020-10-16 14:58:26 +08:00
parent b3cbfef160
commit 6ef7e5afbd
2 changed files with 3 additions and 4 deletions

View File

@ -49,13 +49,13 @@ tester:
## make install: Go install the project
install:
cd internal/repo && packr
$(GO) install -ldflags '${GOLDFLAGS}' ./cmd/${APP_NAME}
$(GO) install -tags '${TAGS}' -ldflags '${GOLDFLAGS}' ./cmd/${APP_NAME}
@printf "${GREEN}Build bitxhub successfully!${NC}\n"
build:
cd internal/repo && packr
@mkdir -p bin
$(GO) build -ldflags '${GOLDFLAGS}' ./cmd/${APP_NAME}
$(GO) build -tags '${TAGS}' -ldflags '${GOLDFLAGS}' ./cmd/${APP_NAME}
@mv ./bitxhub bin
@printf "${GREEN}Build bitxhub successfully!${NC}\n"
@ -64,7 +64,7 @@ linter:
golangci-lint run
## make cluster: Run cluster including 4 nodes
cluster:
cluster:install
@cd scripts && bash cluster.sh
.PHONY: tester build

View File

@ -101,5 +101,4 @@ function clear_config() {
}
prepare
compile
start