Add make docker-dist
This commit is contained in:
parent
1f6bed565e
commit
0b427fd430
1 changed files with 12 additions and 0 deletions
12
Makefile
12
Makefile
|
@ -112,6 +112,18 @@ dist:
|
|||
make source
|
||||
make appstore
|
||||
|
||||
# Run make and make dist in a Docker container
|
||||
.PHONY: docker-dist
|
||||
docker-dist:
|
||||
docker run --rm -it -v $(CURDIR):/tasks -w /tasks node make docker-target
|
||||
|
||||
# Command used inside Docker container; do not invoke directly
|
||||
.PHONY: docker-target
|
||||
docker-target:
|
||||
which rsync zip openssl || (apt-get update && apt-get install -y rsync zip openssl)
|
||||
make
|
||||
make dist
|
||||
|
||||
# Builds the source package
|
||||
.PHONY: source
|
||||
source:
|
||||
|
|
Loading…
Reference in a new issue