mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add an install
target to Makefile.
This commit is contained in:
parent
9f0f73f452
commit
be3d563a13
1 changed files with 5 additions and 0 deletions
5
Makefile
5
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue