diff --git a/Makefile b/Makefile index 5e17da8..fcb83ee 100644 --- a/Makefile +++ b/Makefile @@ -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}