2016-09-04 18:20:07 +00:00
|
|
|
VERSION=0.2.1
|
2015-04-19 17:06:05 +00:00
|
|
|
|
2017-04-16 18:47:34 +00:00
|
|
|
all: fmt combined
|
2014-11-23 15:10:55 +00:00
|
|
|
|
|
|
|
combined:
|
2014-12-24 18:34:24 +00:00
|
|
|
go install .
|
2014-04-28 00:42:05 +00:00
|
|
|
|
2016-03-13 19:16:14 +00:00
|
|
|
release: tag release-deps dockerhub
|
2016-11-08 13:28:15 +00:00
|
|
|
gox -ldflags "-X main.version=${VERSION}" -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
|
|
|
release-deps:
|
|
|
|
go get github.com/mitchellh/gox
|
|
|
|
|
2015-04-19 17:06:05 +00:00
|
|
|
pull:
|
|
|
|
git pull
|
|
|
|
cd ../data; git pull
|
|
|
|
cd ../http; git pull
|
|
|
|
cd ../MailHog-Server; git pull
|
|
|
|
cd ../MailHog-UI; git pull
|
|
|
|
cd ../smtp; git pull
|
|
|
|
cd ../storage; git pull
|
|
|
|
|
|
|
|
tag:
|
2016-03-13 19:25:08 +00:00
|
|
|
git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../data; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../http; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../MailHog-Server; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../MailHog-UI; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../smtp; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../storage; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
2015-04-19 17:06:05 +00:00
|
|
|
|
2017-04-16 18:47:34 +00:00
|
|
|
.PNONY: all combined release fmt release-deps pull tag
|