mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 14:18:32 +00:00
Updated Makefile to update dependencies instead of trying to ge them from GOPATH
This commit is contained in:
@@ -14,19 +14,19 @@ LDFLAGS="-X main.Version=${VERSION} -X main.Build=${BUILD} -X main.GoVersion=${G
|
||||
|
||||
linux-amd64:
|
||||
@echo "Building linux/amd64 binaries in ${BIN_DIR}"
|
||||
@cd ${TOP_DIR} && glide install
|
||||
@cd ${TOP_DIR} && glide update
|
||||
@$(foreach pkg,$(pkgs),rm -f ${BIN_DIR}/$(pkg) 2> /dev/null;)
|
||||
@$(foreach pkg,$(pkgs),GOOS=linux GOARCH=amd64 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/$(pkg) ./$(pkg);)
|
||||
|
||||
linux-386:
|
||||
@echo "Building linux/386 binaries in ${BIN_DIR}"
|
||||
@cd ${TOP_DIR} && glide install
|
||||
@cd ${TOP_DIR} && glide update
|
||||
@$(foreach pkg,$(pkgs),rm -f ${BIN_DIR}/$(pkg) 2> /dev/null;)
|
||||
@$(foreach pkg,$(pkgs),GOOS=linux GOARCH=386 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/$(pkg) ./$(pkg);)
|
||||
|
||||
darwin-amd64:
|
||||
@echo "Building darwin/amd64 binaries in ${BIN_DIR}"
|
||||
@cd ${TOP_DIR} && glide install
|
||||
@cd ${TOP_DIR} && glide update
|
||||
@$(foreach pkg,$(pkgs),rm -f ${BIN_DIR}/$(pkg) 2> /dev/null;)
|
||||
@$(foreach pkg,$(pkgs),GOOS=darwin GOARCH=amd64 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/$(pkg) ./$(pkg);)
|
||||
|
||||
|
Reference in New Issue
Block a user