diff --git a/Makefile b/Makefile index 24cc90e..5378d55 100644 --- a/Makefile +++ b/Makefile @@ -8,12 +8,10 @@ GOFLAGS=-a \ -ldflags "-s -w -X main.VERSION=$(BINNAME)/$(VERSION)" \ -gcflags "-trimpath ${GOPATH}" \ -asmflags "-trimpath ${GOPATH}" - -SOURCES=client/ Gopkg.lock Gopkg.toml Makefile Config.go main.go nmdc-webfrontend.conf.SAMPLE .PHONY: all deps clean clean-deps -all: $(BINNAME)-$(VERSION)-win32.7z $(BINNAME)-$(VERSION)-linux64.tar.xz $(BINNAME)-$(VERSION)-src.tar.xz +all: $(BINNAME)-$(VERSION)-win32.7z $(BINNAME)-$(VERSION)-linux64.tar.xz $(BINNAME)-$(VERSION)-src.zip deps: npm i @@ -52,5 +50,5 @@ $(BINNAME)-$(VERSION)-win32.7z: $(BINNAME).exe nmdc-webfrontend.conf.SAMPLE $(BINNAME)-$(VERSION)-linux64.tar.xz: $(BINNAME) nmdc-webfrontend.conf.SAMPLE XZ_OPT='-9' tar caf "$(BINNAME)-$(VERSION)-linux64.tar.xz" $(BINNAME) nmdc-webfrontend.conf.SAMPLE --owner=0 --group=0 -$(BINNAME)-$(VERSION)-src.tar.xz: $(SOURCES) - XZ_OPT='-9' tar caf "$(BINNAME)-$(VERSION)-src.tar.xz" $(SOURCES) --owner=0 --group=0 +$(BINNAME)-$(VERSION)-src.zip: + hg archive "$(BINNAME)-$(VERSION)-src.zip" || git archive -o "$(BINNAME)-$(VERSION)-src.zip" HEAD