Don't try to send signal while gdb is not started.
[src/xds/xds-gdb.git] / Makefile
index 95afe2e..e4973ad 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,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
@@ -93,6 +94,7 @@ package-all:
        @echo " WARNING: build on Windows not supported for now."
        @echo "# Build darwin amd64..."
        GOOS=darwin GOARCH=amd64 RELEASE=1 make -f $(ROOT_SRCDIR)/Makefile package
+       make -f $(ROOT_SRCDIR)/Makefile clean
 
 vendor: tools/glide glide.yaml
        ./tools/glide install --strip-vendor