refactor(Makefile): add build tags
This commit is contained in:
parent
b3cbfef160
commit
6ef7e5afbd
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
|
@ -101,5 +101,4 @@ function clear_config() {
|
|||
}
|
||||
|
||||
prepare
|
||||
compile
|
||||
start
|
||||
|
|
Loading…
Reference in New Issue