From 727482166c361915b878f38044b83652369081c7 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 4 Jan 2017 23:03:39 +0100 Subject: [PATCH] Add install make target --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 74d53d4..531fb04 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ ci: curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh bash golang.sh - test: gometalinter --deadline 20s --cyclo-over=15 + +install: + go install -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"