summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2020-12-08 15:46:39 +0000
committerPaul Buetow <pbuetow@mimecast.com>2020-12-08 15:46:39 +0000
commitf7e2c589371a9c496dfe435473437c9eb423810d (patch)
tree09bd007ffb397f3090b8a388b3d2530e80ff7092
parente470159911c0b218ddb760fcb253c2b3523a0d27 (diff)
proper go installv3.1.0
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index e97656c..c8e5a12 100644
--- a/Makefile
+++ b/Makefile
@@ -6,16 +6,16 @@ build:
${GO} build -o dgrep ./cmd/dgrep/main.go
${GO} build -o dmap ./cmd/dmap/main.go
${GO} build -o dtail ./cmd/dtail/main.go
+install:
+ ${GO} install ./cmd/dserver/main.go
+ ${GO} install ./cmd/dcat/main.go
+ ${GO} install ./cmd/dgrep/main.go
+ ${GO} install ./cmd/dmap/main.go
+ ${GO} install ./cmd/dtail/main.go
clean:
ls ./cmd/ | while read cmd; do \
test -f $$cmd && rm $$cmd; \
done
-install: build
- cp -pv dserver ${GOPATH}/bin/dserver
- cp -pv dcat ${GOPATH}/bin/dcat
- cp -pv dgrep ${GOPATH}/bin/dgrep
- cp -pv dmap ${GOPATH}/bin/dmap
- cp -pv dtail ${GOPATH}/bin/dtail
vet:
find . -type d | while read dir; do \
echo ${GO} vet $$dir; \