projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f0f73f
)
Add an `install` target to Makefile.
author
Austin Ziegler
<austin@zieglers.ca>
Tue, 9 Dec 2014 02:54:49 +0000
(21:54 -0500)
committer
bep
<bjorn.erik.pedersen@gmail.com>
Tue, 9 Dec 2014 10:12:40 +0000
(11:12 +0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index b8842fc0d5dcc3f9e93aa1d38066fd60feb25be1..00460f172ab8267fd0d33eeee5323f1a70b64fe0 100644
(file)
--- 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