aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGibheer <gibheer+git@zero-knowledge.org>2018-12-12 14:04:22 +0100
committerGibheer <gibheer+git@zero-knowledge.org>2018-12-12 14:04:22 +0100
commitcb5b49e4d669a484f66dd4a339a80d47fc1de04c (patch)
tree7bc2d877444d6fa830776c5547188ef7d1a198d7
parent7e387d55b93a17edcc405a2fbd20c4fb7a1be843 (diff)
use GOOS to compile for correct environment
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index da681d1..c691d1b 100644
--- a/Makefile
+++ b/Makefile
@@ -24,9 +24,9 @@ clean:
build: clean
mkdir -p ${WRKDIR}
- go build -ldflags="${LDFLAGS}" -o ${WRKDIR}/moncheck ${PKGNAME}/cmd/moncheck
- go build -ldflags="${LDFLAGS}" -o ${WRKDIR}/monfront ${PKGNAME}/cmd/monfront
- go build -ldflags="${LDFLAGS}" -o ${WRKDIR}/monwork ${PKGNAME}/cmd/monwork
+ GOOS=${GOOS} go build -ldflags="${LDFLAGS}" -o ${WRKDIR}/moncheck ${PKGNAME}/cmd/moncheck
+ GOOS=${GOOS} go build -ldflags="${LDFLAGS}" -o ${WRKDIR}/monfront ${PKGNAME}/cmd/monfront
+ GOOS=${GOOS} go build -ldflags="${LDFLAGS}" -o ${WRKDIR}/monwork ${PKGNAME}/cmd/monwork
install: build
install -d -m 0755 ${DESTDIR}${bindir}