mirror of
https://github.com/weaveworks/scope.git
synced 2026-02-14 18:09:59 +00:00
17 lines
314 B
Makefile
17 lines
314 B
Makefile
.PHONY: all test clean
|
|
|
|
DIRS=$(shell find . -maxdepth 2 -name *.go -printf "%h\n" | uniq)
|
|
TARGETS=$(join $(patsubst %,%/,$(DIRS)),$(DIRS))
|
|
|
|
all: $(TARGETS)
|
|
|
|
$(TARGETS):
|
|
go get -tags netgo ./$(@D)
|
|
go build -ldflags "-extldflags \"-static\"" -tags netgo -o $@ ./$(@D)
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
clean:
|
|
go clean ./...
|