Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2014-12-09 05:54:49 +0300
committerbep <bjorn.erik.pedersen@gmail.com>2014-12-09 13:12:40 +0300
commitbe3d563a13eae2c4801fec5e9537b4f246ee48c7 (patch)
tree36470edcbd8096832854d160d0ce081eae9d6cb5 /Makefile
parent9f0f73f4523947af9703d3357c4b6881f7d85caa (diff)
Add an `install` target to Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
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