Add an install target to Makefile.

This commit is contained in:
Austin Ziegler 2014-12-08 21:54:49 -05:00 committed by bep
parent 9f0f73f452
commit be3d563a13

View file

@ -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