Playing with streadway/amqp's examples

This commit is contained in:
Dan Buch
2012-11-10 13:41:02 -05:00
parent 19b17354e0
commit ab9db7837d
2 changed files with 204 additions and 2 deletions

View File

@@ -1,14 +1,23 @@
CLEAN_GOPATH := $(shell echo $(GOPATH) | tr ":" "\n" | grep -v '^$$' | grep -v $(PWD) | tr "\n" ":")
GOPATH := $(PWD):$(CLEAN_GOPATH)
PACKAGES := $(foreach pkg,\
$(shell ls src/meatballhat.com/gotour-artifacts),\
$(patsubst %,meatballhat.com/gotour-artifacts/%,$(pkg))\
)
PACKAGES += meatballhat.com/amqp-fun
all:
test: build
go test $(PACKAGES)
build: deps fmt
go install $(PACKAGES)
fmt:
go fmt $(PACKAGES)
deps:
go list -f '{{range .Imports}}{{.}} {{end}}' $(PACKAGES) | xargs go get
clean:
rm -v bin/*
@@ -20,4 +29,4 @@ env:
@echo GOPATH=$(GOPATH)
@echo PACKAGES=$(PACKAGES)
.PHONY: all clean publish env fmt
.PHONY: test build clean publish env fmt