2012-12-20 02:10:56 +00:00
|
|
|
REPO_BASE := github.com/meatballhat/box-o-sand/algs4/go
|
|
|
|
TARGETS := \
|
|
|
|
$(REPO_BASE)/algs4 \
|
|
|
|
$(REPO_BASE)/algs4-binarysearch \
|
|
|
|
$(REPO_BASE)/algs4-flips \
|
|
|
|
$(REPO_BASE)/algs4-gcd \
|
|
|
|
$(REPO_BASE)/algs4-rolls
|
2012-11-18 12:50:09 +00:00
|
|
|
|
|
|
|
test: build
|
2012-12-20 02:10:56 +00:00
|
|
|
go test -x $(TARGETS)
|
2012-11-18 12:50:09 +00:00
|
|
|
|
|
|
|
build: deps
|
2012-12-20 02:10:56 +00:00
|
|
|
go install -x $(TARGETS)
|
2012-11-18 12:50:09 +00:00
|
|
|
|
|
|
|
fmt:
|
2012-12-20 02:10:56 +00:00
|
|
|
go fmt -x $(TARGETS)
|
2012-11-18 12:50:09 +00:00
|
|
|
|
|
|
|
deps:
|
2012-12-20 02:10:56 +00:00
|
|
|
go get -x -n $(TARGETS)
|
2012-11-18 12:50:09 +00:00
|
|
|
|
|
|
|
clean:
|
2012-12-20 02:10:56 +00:00
|
|
|
go clean -x -x $(TARGETS)
|
2012-11-18 12:50:09 +00:00
|
|
|
|
|
|
|
.PHONY: test build clean fmt
|