X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=Makefile;h=8dec00756a74417884bf19ab4d8e85e51407f6a3;hb=refs%2Fheads%2Fsandbox%2Fbenierc%2Fxds-server-update-pkg;hp=705b670a9c7ebe1fb50e8effb606a74074440bcf;hpb=bb34a059939273ef71fa067feff357a6278820e2;p=src%2Fxds%2Fxds-server.git diff --git a/Makefile b/Makefile index 705b670..8dec007 100644 --- a/Makefile +++ b/Makefile @@ -119,8 +119,13 @@ 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 - go test --race $(shell $(LOCAL_TOOLSDIR)/glide novendor) +ifndef name + GOCACHE=off go test --race ./test -v +else + GOCACHE=off go test --race ./test -v -run $(name) +endif vet: tools/glide go vet $(shell $(LOCAL_TOOLSDIR)/glide novendor) @@ -140,7 +145,7 @@ clean: .PHONY: distclean distclean: clean - (cd $(ROOT_SRCDIR) && rm -rf $(LOCAL_BINDIR) ./tools ./glide.lock ./vendor ./*.zip ./webapp/dist ./webapp/node_modules) + (cd $(ROOT_SRCDIR) && rm -rf $(LOCAL_BINDIR) ./tools ./glide.lock ./vendor ./*.zip ./webapp/dist ./webapp/node_modules ./scripts/sdks/agl/sdks_*.json) webapp: webapp/install mkdir -p $(ROOT_SRCDIR)/webapp/dist $(ROOT_SRCDIR)/webapp/dist/fonts @@ -153,7 +158,7 @@ webapp/install: .PHONY: scripts scripts: - @mkdir -p $(LOCAL_BINDIR) && cp -rf scripts/xds-utils scripts/sdks $(LOCAL_BINDIR) + @mkdir -p $(LOCAL_BINDIR) && cp -rf scripts/xds-utils scripts/sdks scripts/package-update $(LOCAL_BINDIR) .PHONY: conffile conffile: