Browse Source

Add target 'run' to Makefile

Kailash Nadh 6 years ago
parent
commit
e43c9b88e9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Makefile

+ 4 - 0
Makefile

@@ -51,6 +51,10 @@ build:
 	go build  -o ${BIN} -ldflags="-s -w -X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'"
 	stuffbin -a stuff -in ${BIN} -out ${BIN} ${STATIC}
 
+.PHONY: run
+run: build
+	./${BIN}
+
 .PHONY: deps
 deps:
 	go get -u github.com/knadh/stuffbin/...