Updated Makefile to update dependencies instead of trying to ge them from GOPATH

This commit is contained in:
Carlos Salguero
2017-02-15 17:31:51 -03:00
parent fc4a002e03
commit 28a1870de9

View File

@@ -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);)