diff options
author | Austin Ziegler <austin@zieglers.ca> | 2014-12-08 21:54:49 -0500 |
---|---|---|
committer | bep <bjorn.erik.pedersen@gmail.com> | 2014-12-09 11:12:40 +0100 |
commit | be3d563a13eae2c4801fec5e9537b4f246ee48c7 (patch) | |
tree | 36470edcbd8096832854d160d0ce081eae9d6cb5 /Makefile | |
parent | 9f0f73f4523947af9703d3357c4b6881f7d85caa (diff) |
Add an `install` target to Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |