From: Austin Ziegler Date: Tue, 9 Dec 2014 02:54:49 +0000 (-0500) Subject: Add an `install` target to Makefile. X-Git-Tag: v0.13~263 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=be3d563a13eae2c4801fec5e9537b4f246ee48c7;p=brevno-suite%2Fhugo Add an `install` target to Makefile. --- diff --git a/Makefile b/Makefile index b8842fc0..00460f17 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