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}" \
|
||||
-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
|
||||
|
Loading…
Reference in New Issue
Block a user