From 5fb38ce49cf112af7070f59160b23fe960cb2429 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 13 Jan 2017 03:53:00 +0000 Subject: [PATCH] Makefile: allow `make install` without `go` Signed-off-by: Akihiro Suda --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c58f64a..da975ef 100644 --- a/Makefile +++ b/Makefile @@ -111,8 +111,10 @@ clean: ## clean up binaries @echo "🐳 $@" @rm -f $(BINARIES) -install: $(BINARIES) ## install binaries - @echo "🐳 $@" +install: ## install binaries + @ls $(BINARIES) > /dev/null 2>&1 || \ + (echo "👹 Please run \`make\` before running \`make install\`." && false) + @echo "🐳 $@ $(BINARIES)" @mkdir -p $(DESTDIR)/bin @install $(BINARIES) $(DESTDIR)/bin