aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGibheer <gibheer+git@zero-knowledge.org>2019-08-12 14:49:32 +0200
committerGibheer <gibheer+git@zero-knowledge.org>2019-08-12 14:49:32 +0200
commit88b50033d0e9808a4657ff56835c6dacc77cd433 (patch)
tree77bceb02fe66819f25f5e4d890c4e7325cc62f48 /Makefile
parent0202d1c4102860dd99f9aed72557c4cdf7ed983b (diff)
make build the default
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 023262c..5d712f2 100644
--- a/Makefile
+++ b/Makefile
@@ -19,14 +19,14 @@ LDFLAGS += -B ${BUILDID}
BUILD_DATE ?= `date +%FT%T%z`
LDFLAGS += -X main.BUILD_DATE=${BUILD_DATE}
-clean:
- -rm -r ${WRKDIR}
-
build: clean
mkdir -p ${WRKDIR}
GOOS=${GOOS} CGO_ENABLED=false go build -ldflags="${LDFLAGS}" -o ${WRKDIR}/moncheck ${PKGNAME}/cmd/moncheck
GOOS=${GOOS} CGO_ENABLED=false go build -ldflags="${LDFLAGS}" -o ${WRKDIR}/monwork ${PKGNAME}/cmd/monwork
+clean:
+ -rm -r ${WRKDIR}
+
install: build
install -d -m 0755 ${DESTDIR}${bindir}
install -d -m 0755 ${DESTDIR}${sysconfdir}