summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2020-01-20 18:41:05 +0000
committerPaul Bütow <pbuetow@mimecast.com>2020-01-21 14:35:23 +0000
commitc128865c4c7411c29a59fca9a3a2f95537686d7b (patch)
tree193bccc70d942c8b70cc93fae2670263701e43aa /Makefile
parent3755a9911ecb05886577095f2b8cc8b9e4066a3a (diff)
Move commands to cmd/ and move internal dependencies to internal/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 3d24800..456987d 100644
--- a/Makefile
+++ b/Makefile
@@ -2,19 +2,19 @@ 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
+ ${GO} build -o dtail ./cmd/dtail/main.go
+ ${GO} build -o dcat ./cmd/dcat/main.go
+ ${GO} build -o dgrep ./cmd/dgrep/main.go
+ ${GO} build -o dmap ./cmd/dmap/main.go
+ ${GO} build -o dserver ./cmd/dserver/main.go
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
+install: build
+ cp -pv dtail ${GOPATH}/bin/dtail
+ cp -pv dcat ${GOPATH}/bin/dcat
+ cp -pv dgrep ${GOPATH}/bin/dgrep
+ cp -pv dmap ${GOPATH}/bin/dmap
+ cp -pv dserver ${GOPATH}/bin/dserver
vet:
find . -type d | while read dir; do \
echo ${GO} vet $$dir; \