2012-11-18 12:50:09 +00:00
|
|
|
CLEAN_GOPATH := $(shell echo $(GOPATH) | tr ":" "\n" | grep -v '^$$' | grep -v $(PWD) | tr "\n" ":")
|
|
|
|
GOPATH := $(PWD):$(CLEAN_GOPATH)
|
2012-11-18 13:06:50 +00:00
|
|
|
PACKAGES := \
|
|
|
|
meatballhat.com/algs4 \
|
|
|
|
meatballhat.com/algs4-gcd
|
2012-11-18 12:50:09 +00:00
|
|
|
|
|
|
|
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
|