From cc8c57458fa0f1e6c1189e9eeff32d98eda7e681 Mon Sep 17 00:00:00 2001
From: Thomas Boerger <tboerger@suse.de>
Date: Thu, 24 Nov 2016 14:38:37 +0100
Subject: [PATCH] Really use go install on make install

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index a57f6610af..d7d37106c5 100644
--- a/Makefile
+++ b/Makefile
@@ -66,8 +66,8 @@ test:
 check: test
 
 .PHONY: install
-install: $(BIN)/$(EXECUTABLE)
-	cp $< $(GOPATH)/bin/
+install: $(wildcard *.go)
+	go install -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)'
 
 .PHONY: build
 build: $(BIN)/$(EXECUTABLE)