diff options
author | Gibheer <gibheer+git@zero-knowledge.org> | 2018-12-12 14:04:22 +0100 |
---|---|---|
committer | Gibheer <gibheer+git@zero-knowledge.org> | 2018-12-12 14:04:22 +0100 |
commit | cb5b49e4d669a484f66dd4a339a80d47fc1de04c (patch) | |
tree | 7bc2d877444d6fa830776c5547188ef7d1a198d7 /Makefile | |
parent | 7e387d55b93a17edcc405a2fbd20c4fb7a1be843 (diff) |
use GOOS to compile for correct environment
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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} |