box-o-sand/algs4/Makefile

25 lines
406 B
Makefile
Raw Normal View History

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
go test -x $(TARGETS)
2012-11-18 12:50:09 +00:00
build: deps
go install -x $(TARGETS)
2012-11-18 12:50:09 +00:00
fmt:
go fmt -x $(TARGETS)
2012-11-18 12:50:09 +00:00
deps:
go get -x -n $(TARGETS)
2012-11-18 12:50:09 +00:00
clean:
go clean -x -x $(TARGETS)
2012-11-18 12:50:09 +00:00
.PHONY: test build clean fmt