box-o-sand/sylvilagus/go/Makefile
Dan Buch 1120412e45 Namespacing work by implementation language
which just might be a horrible idea, but it was feeling cluttered at
just two languages and I'm about to add a third...
2012-11-14 17:56:40 -05:00

29 lines
468 B
Makefile

CLEAN_GOPATH := $(shell echo $(GOPATH) | tr ":" "\n" | grep -v '^$$' | grep -v $(PWD) | tr "\n" ":")
GOPATH := $(PWD):$(CLEAN_GOPATH)
PACKAGES := meatballhat.com/sylvilagus-conntest
export GOPATH
test: build
go test $(PACKAGES)
build: deps
go install $(PACKAGES)
deps:
go get $(PACKAGES)
fmt:
go fmt $(PACKAGES)
clean:
rm -v bin/*
find pkg -name '*.a' -exec rm -v {} \;
env:
@echo GOPATH=$(GOPATH)
@echo PACKAGES=$(PACKAGES)
.PHONY: all clean env fmt