mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Add an install
target to Makefile.
This commit is contained in:
5
Makefile
5
Makefile
@@ -10,6 +10,8 @@ LDFLAGS=-ldflags "-X github.com/spf13/hugo/commands.commitHash ${COMMIT_HASH} -X
|
|||||||
|
|
||||||
all: gitinfo
|
all: gitinfo
|
||||||
|
|
||||||
|
install: install-gitinfo
|
||||||
|
|
||||||
help:
|
help:
|
||||||
echo ${COMMIT_HASH}
|
echo ${COMMIT_HASH}
|
||||||
echo ${BUILD_DATE}
|
echo ${BUILD_DATE}
|
||||||
@@ -17,6 +19,9 @@ help:
|
|||||||
gitinfo:
|
gitinfo:
|
||||||
go build ${LDFLAGS} -o hugo main.go
|
go build ${LDFLAGS} -o hugo main.go
|
||||||
|
|
||||||
|
install-gitinfo:
|
||||||
|
go install ${LDFLAGS} ./...
|
||||||
|
|
||||||
no-git-info:
|
no-git-info:
|
||||||
go build -o hugo main.go
|
go build -o hugo main.go
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user