X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=Makefile;h=64ba5a3ac0fbc05f313d29b27d6359a118bb3add;hb=95293a7ee22cfff9c49a19bd7ae205529d812fa9;hp=f7f7a9a9789b844d7fe86cea4dbe9e1aa37909db;hpb=db0df685e9dc40fdd53113caaac976d12fd73435;p=src%2Fxds%2Fxds-server.git diff --git a/Makefile b/Makefile index f7f7a9a..64ba5a3 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 @@ -144,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