mirror of
https://github.com/knadh/listmonk.git
synced 2024-12-28 09:58:52 +08:00
Add target 'run' to Makefile
This commit is contained in:
parent
5acde50c2e
commit
e43c9b88e9
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -51,6 +51,10 @@ build:
|
||||||
go build -o ${BIN} -ldflags="-s -w -X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'"
|
go build -o ${BIN} -ldflags="-s -w -X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'"
|
||||||
stuffbin -a stuff -in ${BIN} -out ${BIN} ${STATIC}
|
stuffbin -a stuff -in ${BIN} -out ${BIN} ${STATIC}
|
||||||
|
|
||||||
|
.PHONY: run
|
||||||
|
run: build
|
||||||
|
./${BIN}
|
||||||
|
|
||||||
.PHONY: deps
|
.PHONY: deps
|
||||||
deps:
|
deps:
|
||||||
go get -u github.com/knadh/stuffbin/...
|
go get -u github.com/knadh/stuffbin/...
|
||||||
|
|
Loading…
Reference in a new issue