Playing with streadway/amqp's examples
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user