From be3d563a13eae2c4801fec5e9537b4f246ee48c7 Mon Sep 17 00:00:00 2001 From: Austin Ziegler Date: Mon, 8 Dec 2014 21:54:49 -0500 Subject: [PATCH] Add an `install` target to Makefile. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index b8842fc0d..00460f172 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ LDFLAGS=-ldflags "-X github.com/spf13/hugo/commands.commitHash ${COMMIT_HASH} -X all: gitinfo +install: install-gitinfo + help: echo ${COMMIT_HASH} echo ${BUILD_DATE} @@ -17,6 +19,9 @@ help: gitinfo: go build ${LDFLAGS} -o hugo main.go +install-gitinfo: + go install ${LDFLAGS} ./... + no-git-info: go build -o hugo main.go