X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=Makefile;h=64ba5a3ac0fbc05f313d29b27d6359a118bb3add;hb=95293a7ee22cfff9c49a19bd7ae205529d812fa9;hp=99fbb555d5329c6afcae9c265291ca50de81adf5;hpb=b7bc9102de461eb880d951f16bdd9ded74e43a4f;p=src%2Fxds%2Fxds-server.git diff --git a/Makefile b/Makefile index 99fbb55..64ba5a3 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 @@ -149,7 +154,7 @@ webapp: webapp/install webapp/install: (cd webapp && npm install) - @[ -d ${DESTDIR}/usr ] && { echo "Removing unwanted ${DESTDIR}/usr directory"; rm -rf ${DESTDIR}/usr; } + @[ -d ${DESTDIR}/usr ] && { echo "Removing unwanted ${DESTDIR}/usr directory"; rm -rf ${DESTDIR}/usr; } || true .PHONY: scripts scripts: