From 3755a9911ecb05886577095f2b8cc8b9e4066a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Thu, 9 Jan 2020 20:30:15 +0000 Subject: Release of DTail v1.0.0 --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3d24800 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +GO ?= go +all: build +build: + ${GO} version + ${GO} build + cp -pv ./dtail ./dcat + cp -pv ./dtail ./dgrep + cp -pv ./dtail ./dmap + cp -pv ./dtail ./dserver +clean: + rm -v dtail dgrep dcat dmap dserver 2>/dev/null +install: + ${GO} install + cp -pv ${GOPATH}/bin/dtail ${GOPATH}/bin/dcat + cp -pv ${GOPATH}/bin/dtail ${GOPATH}/bin/dgrep + cp -pv ${GOPATH}/bin/dtail ${GOPATH}/bin/dmap + cp -pv ${GOPATH}/bin/dtail ${GOPATH}/bin/dserver +vet: + find . -type d | while read dir; do \ + echo ${GO} vet $$dir; \ + ${GO} vet $$dir; \ + done +lint: + ${GO} get golang.org/x/lint/golint + find . -type d | while read dir; do \ + echo ${GOPATH}/bin/golint $$dir; \ + ${GOPATH}/bin/golint $$dir; \ + done -- cgit v1.2.3