makefile: use hg/git archive command to build source tarball
This commit is contained in:
parent
584a6b632f
commit
055a73fb05
8
Makefile
8
Makefile
@ -9,11 +9,9 @@ GOFLAGS=-a \
|
|||||||
-gcflags "-trimpath ${GOPATH}" \
|
-gcflags "-trimpath ${GOPATH}" \
|
||||||
-asmflags "-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
|
.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:
|
deps:
|
||||||
npm i
|
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
|
$(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
|
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)
|
$(BINNAME)-$(VERSION)-src.zip:
|
||||||
XZ_OPT='-9' tar caf "$(BINNAME)-$(VERSION)-src.tar.xz" $(SOURCES) --owner=0 --group=0
|
hg archive "$(BINNAME)-$(VERSION)-src.zip" || git archive -o "$(BINNAME)-$(VERSION)-src.zip" HEAD
|
||||||
|
Loading…
Reference in New Issue
Block a user