summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 3480637..c358d8e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,29 +1,31 @@
GO ?= go
all: build
build:
+ ${GO} build -o dserver ./cmd/dserver/main.go
${GO} build -o dcat ./cmd/dcat/main.go
- ${GO} build -o dexec ./cmd/dexec/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
+ ${GO} build -o drun ./cmd/drun/main.go
${GO} build -o dtail ./cmd/dtail/main.go
clean:
- rm -v dtail dgrep dcat dmap dserver dexec 2>/dev/null
+ 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 dexec ${GOPATH}/bin/dexec
cp -pv dgrep ${GOPATH}/bin/dgrep
cp -pv dmap ${GOPATH}/bin/dmap
- cp -pv dserver ${GOPATH}/bin/dserver
+ cp -pv drun ${GOPATH}/bin/drun
cp -pv dtail ${GOPATH}/bin/dtail
vet:
find . -type d | while read dir; do \
echo ${GO} vet $$dir; \
${GO} vet $$dir; \
- done
+ 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
+ done