From 88b50033d0e9808a4657ff56835c6dacc77cd433 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Mon, 12 Aug 2019 14:49:32 +0200 Subject: make build the default --- Makefile | 6 +++--- 1 file 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} -- cgit v1.2.3-70-g09d2