Go Euclid!

This commit is contained in:
Dan Buch
2012-11-18 07:50:09 -05:00
parent d231791a19
commit f3712555d5
2 changed files with 58 additions and 0 deletions

20
algs4/Makefile Normal file
View File

@@ -0,0 +1,20 @@
CLEAN_GOPATH := $(shell echo $(GOPATH) | tr ":" "\n" | grep -v '^$$' | grep -v $(PWD) | tr "\n" ":")
GOPATH := $(PWD):$(CLEAN_GOPATH)
PACKAGES := meatballhat.com/algs4-gcd
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