X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=Makefile;fp=Makefile;h=0b4073153caf620b54c2452453a43fd697bb7949;hb=7ec4cfb73ca8ead1c816e3c7845211ddfb548a12;hp=f7f7a9a9789b844d7fe86cea4dbe9e1aa37909db;hpb=c095e1ea9a9e38f020ce4ae852d97c712be910b6;p=src%2Fxds%2Fxds-server.git diff --git a/Makefile b/Makefile index f7f7a9a..0b40731 100644 --- a/Makefile +++ b/Makefile @@ -119,11 +119,12 @@ xds: scripts tools/syncthing/copytobin @echo "### Build XDS server (version $(VERSION), subversion $(SUB_VERSION)) - $(BUILD_MODE)"; @cd $(ROOT_SRCDIR); $(BUILD_ENV_FLAGS) go build $(VERBOSE_$(V)) -i -o $(LOCAL_BINDIR)/$(TARGET)$(EXT) -ldflags "$(GO_LDFLAGS) -X main.AppVersion=$(VERSION) -X main.AppSubVersion=$(SUB_VERSION)" -gcflags "$(GO_GCFLAGS)" . +.PHONY: test test: tools/glide ifndef name - go test --race ./test -v + GOCACHE=off go test --race ./test -v else - go test --race ./test -v -run $(name) + GOCACHE=off go test --race ./test -v -run $(name) endif vet: tools/glide