Stubbing in new Go project for playing more with AMQP and database stuff

This commit is contained in:
Dan Buch
2012-11-06 23:01:10 -05:00
parent c556fa9b7c
commit 597f07ec2f
5 changed files with 46 additions and 0 deletions

27
sylvilagus/Makefile Normal file
View File

@@ -0,0 +1,27 @@
CLEAN_GOPATH := $(shell echo $(GOPATH) | tr ":" "\n" | grep -v '^$$' | grep -v $(PWD) | tr "\n" ":")
GOPATH := $(PWD):$(CLEAN_GOPATH)
PACKAGES := meatballhat.com/sylvilagus
export GOPATH
test: build
go test $(PACKAGES)
build: deps fmt
go install $(PACKAGES)
deps:
go list -f '{{range .Imports}}{{.}} {{end}}' $(PACKAGES) | xargs go get
fmt:
go fmt $(PACKAGES)
clean:
rm -v bin/*
env:
@echo GOPATH=$(GOPATH)
@echo PACKAGES=$(PACKAGES)
.PHONY: all clean env fmt