2014-04-28 00:42:05 +00:00
|
|
|
DEPS = $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
|
|
|
|
|
2014-11-23 15:10:55 +00:00
|
|
|
all: deps bindata fmt combined
|
|
|
|
|
|
|
|
combined:
|
2014-11-23 14:08:53 +00:00
|
|
|
go install ./MailHog
|
2014-04-28 00:42:05 +00:00
|
|
|
|
2014-11-23 15:10:55 +00:00
|
|
|
server:
|
|
|
|
go install ./MailHog-Server
|
|
|
|
|
|
|
|
ui:
|
|
|
|
go install ./MailHog-UI
|
|
|
|
|
2014-10-29 15:00:04 +00:00
|
|
|
bindata:
|
2014-11-23 15:05:11 +00:00
|
|
|
go-bindata -o MailHog-UI/assets/assets.go -pkg assets -prefix MailHog-UI/ MailHog-UI/assets/...
|
2014-04-28 00:42:05 +00:00
|
|
|
|
|
|
|
release: release-deps
|
2014-10-29 18:55:17 +00:00
|
|
|
gox -output="build/{{.Dir}}_{{.OS}}_{{.Arch}}"
|
2014-04-28 00:42:05 +00:00
|
|
|
|
2014-10-29 15:00:04 +00:00
|
|
|
fmt:
|
|
|
|
go fmt ./...
|
|
|
|
|
2014-04-28 00:42:05 +00:00
|
|
|
deps:
|
2014-06-23 18:21:20 +00:00
|
|
|
go get github.com/ian-kent/gotcha/...
|
2014-10-29 15:00:04 +00:00
|
|
|
go get github.com/ian-kent/go-log/log
|
2014-10-29 16:59:59 +00:00
|
|
|
go get github.com/ian-kent/envconf
|
2014-04-28 00:42:05 +00:00
|
|
|
go get github.com/jteeuwen/go-bindata/...
|
|
|
|
go get labix.org/v2/mgo
|
|
|
|
|
|
|
|
test-deps:
|
2014-11-23 14:08:53 +00:00
|
|
|
go get github.com/smartystreets/goconvey
|
2014-04-28 00:42:05 +00:00
|
|
|
|
|
|
|
release-deps:
|
|
|
|
go get github.com/mitchellh/gox
|
|
|
|
|
2014-11-23 15:10:55 +00:00
|
|
|
.PNONY: all combined server ui bindata release fmt test-deps release-deps
|