summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-09 18:28:26 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-09 18:28:26 +0200
commit4db1132c1cb1ffe1425b8ff5266f9f7220aeffe3 (patch)
tree5c0694a6dce3e311a818de9e031c72a434fc84e5
parent6dcba7a8ce6a8f70de56b7f3de40b49014f21a9c (diff)
Set 'all' build rule as default like other XDS packages.
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index e4973ad..334c47d 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ endif
HOST_GOOS=$(shell go env GOOS)
HOST_GOARCH=$(shell go env GOARCH)
ARCH=$(HOST_GOOS)-$(HOST_GOARCH)
+REPOPATH=github.com/iotbzh/xds-gdb
EXT=
ifeq ($(HOST_GOOS), windows)
@@ -51,12 +52,12 @@ else
BUILD_MODE="Release mode"
endif
-REPOPATH=github.com/iotbzh/xds-gdb
-TARGET := xds-gdb
-build: $(TARGET)
+.PHONY: all
+all: build
-xds-gdb: vendor
+.PHONY: build
+build: vendor
@echo "### Build $@ (version $(VERSION), subversion $(SUB_VERSION)) - $(BUILD_MODE)";
@cd $(ROOT_SRCDIR); $(BUILD_ENV_FLAGS) go build $(VERBOSE_$(V)) -i -o $(BINDIR)/$@$(EXT) -ldflags "$(GORELEASE) -X main.AppVersion=$(VERSION) -X main.AppSubVersion=$(SUB_VERSION)" .
@@ -111,7 +112,7 @@ tools/glide:
help:
@echo "Main supported rules:"
- @echo " build (default)"
+ @echo " all (default)"
@echo " release"
@echo " clean"
@echo " package"