Add target 'run' to Makefile

This commit is contained in:
Kailash Nadh 2019-03-27 13:35:51 +05:30
parent 5acde50c2e
commit e43c9b88e9

View file

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