From cb5b49e4d669a484f66dd4a339a80d47fc1de04c Mon Sep 17 00:00:00 2001 From: Gibheer Date: Wed, 12 Dec 2018 14:04:22 +0100 Subject: use GOOS to compile for correct environment --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') 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} -- cgit v1.2.3-70-g09d2