From 7717eb6feb405a632ce298d0c3cc274ace78db78 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Wed, 9 Aug 2017 18:35:29 -0700 Subject: [PATCH] Makefile: simplify installation from tar file By moving the binaries to be rooted at `bin/` in the tar file, installation can be done from a tar file in one fell swoop: ```console $ make release $ sudo tar -C /usr/local -xvf releases/containerd-1.0.0-alpha3-72-ge6ba48f2.m.linux-amd64.tar.gz ``` Signed-off-by: Stephen J Day --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c42771f48..ea5cfb4d5 100644 --- a/Makefile +++ b/Makefile @@ -172,8 +172,9 @@ binaries: $(BINARIES) ## build binaries release: $(BINARIES) @echo "$(WHALE) $@" - @mkdir -p releases/${RELEASE} - @cp $(BINARIES) releases/$(RELEASE)/ + @rm -rf releases/$(RELEASE) releases/$(RELEASE).tar.gz + @install -d releases/$(RELEASE)/bin + @install $(BINARIES) releases/$(RELEASE)/bin @cd releases/$(RELEASE) && tar -czf ../$(RELEASE).tar.gz * clean: ## clean up binaries