Makefile: allow make install without go

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2017-01-13 03:53:00 +00:00 committed by Michael Crosby
parent 2869aac1e5
commit 5fb38ce49c

View file

@ -111,8 +111,10 @@ clean: ## clean up binaries
@echo "🐳 $@" @echo "🐳 $@"
@rm -f $(BINARIES) @rm -f $(BINARIES)
install: $(BINARIES) ## install binaries install: ## install binaries
@echo "🐳 $@" @ls $(BINARIES) > /dev/null 2>&1 || \
(echo "👹 Please run \`make\` before running \`make install\`." && false)
@echo "🐳 $@ $(BINARIES)"
@mkdir -p $(DESTDIR)/bin @mkdir -p $(DESTDIR)/bin
@install $(BINARIES) $(DESTDIR)/bin @install $(BINARIES) $(DESTDIR)/bin