summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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