summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2020-01-09 20:30:15 +0000
committerPaul Bütow <pbuetow@mimecast.com>2020-01-09 20:30:15 +0000
commit3755a9911ecb05886577095f2b8cc8b9e4066a3a (patch)
tree86e24bc466986cb5c9c6d167a918e6064defeafc /Makefile
Release of DTail v1.0.0v1.0.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
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