feat: add nogui build in makefile

This commit is contained in:
James Houlahan
2020-04-24 08:47:48 +00:00
committed by Jakub Cuth
parent 76b480298a
commit a1b01d5922

View File

@ -2,7 +2,7 @@ export GO111MODULE=on
GOOS:=$(shell go env GOOS)
## Build
.PHONY: build check-has-go
.PHONY: build build-nogui check-has-go
VERSION?=1.2.7-git
REVISION:=$(shell git rev-parse --short=10 HEAD)
@ -36,6 +36,9 @@ TGZ_TARGET:=bridge_${GOOS}_${REVISION}.tgz
build: ${TGZ_TARGET}
build-nogui:
go build ${BUILD_FLAGS_NOGUI} -o Desktop-Bridge cmd/Desktop-Bridge/main.go
${TGZ_TARGET}: ${DEPLOY_DIR}/${GOOS}
rm -f $@
cd ${DEPLOY_DIR} && tar czf ../../../$@ ${GOOS}