X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=Makefile;h=56082fda88ab50c4701f9baa2a47d1819dabdf4d;hb=09763a60f600342b8ecb997a83d80110f341048d;hp=190dd083a07cf8f75d6b998ac0488fa4742154d9;hpb=fec61be456784b53906b87f853c109a757e2281f;p=src%2Fxds%2Fxds-agent.git diff --git a/Makefile b/Makefile index 190dd08..56082fd 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,8 @@ ifeq ($(origin SUB_VERSION), undefined) ifneq ($(SUB_VERSION), ) VERSION := $(firstword $(subst -, ,$(SUB_VERSION))) SUB_VERSION := $(word 2,$(subst -, ,$(SUB_VERSION))) - else + endif + ifeq ($(SUB_VERSION), ) SUB_VERSION := $(shell git rev-parse --short HEAD) ifeq ($(SUB_VERSION), ) SUB_VERSION := unknown-dev @@ -91,6 +92,7 @@ package-all: GOOS=windows GOARCH=amd64 RELEASE=1 make -f $(ROOT_SRCDIR)/Makefile package @echo "# Build darwin amd64..." GOOS=darwin GOARCH=amd64 RELEASE=1 make -f $(ROOT_SRCDIR)/Makefile package + make -f $(ROOT_SRCDIR)/Makefile clean test: tools/glide go test --race $(shell $(LOCAL_TOOLSDIR)/glide novendor)