box-o-sand/algs4/Makefile
Dan Buch 8ca6f624d4 Starting to goof around with binary search
which lead into goofing around with IO streams...
2012-11-18 08:30:49 -05:00

24 lines
418 B
Makefile

CLEAN_GOPATH := $(shell echo $(GOPATH) | tr ":" "\n" | grep -v '^$$' | grep -v $(PWD) | tr "\n" ":")
GOPATH := $(PWD):$(CLEAN_GOPATH)
PACKAGES := $(foreach pkg,\
$(shell ls src/meatballhat.com),\
$(patsubst %,meatballhat.com/%,$(pkg))\
)
test: build
go test $(PACKAGES)
build: deps
go install $(PACKAGES)
fmt:
go fmt $(PACKAGES)
deps:
go get $(PACKAGES)
clean:
rm -v bin/*
.PHONY: test build clean fmt