summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <git@mx.buetow.org>2020-12-28 09:49:10 +0000
committerPaul Buetow <git@mx.buetow.org>2020-12-28 09:49:10 +0000
commita5a91623ee60f33dafc16e1752f3fb1f6798ee76 (patch)
treec6433ef4a3415cc7206b5fbe733c0539d0e5a60f /Makefile
parentae8ffc84331ca72f0d33fff69edd85d6e03d29ae (diff)
parent495e9f38220a6d448b15882a235e7a9c21f21d18 (diff)
merge
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 8e3d608..690bfc3 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 | egrep -v '(./samples|./log|./doc)' | while read dir; do \
echo ${GO} vet $$dir; \
@@ -24,8 +24,8 @@ vet:
lint:
${GO} get golang.org/x/lint/golint
find . -type d | while read dir; do \
- echo ${GOPATH}/bin/golint $$dir; \
- ${GOPATH}/bin/golint $$dir; \
+ echo golint $$dir; \
+ golint $$dir; \
done
test:
${GO} test ./... -v