MailHog/Makefile
2017-04-16 19:47:34 +01:00

35 lines
1.1 KiB
Makefile

VERSION=0.2.1
all: fmt combined
combined:
go install .
release: tag release-deps dockerhub
gox -ldflags "-X main.version=${VERSION}" -output="build/{{.Dir}}_{{.OS}}_{{.Arch}}" .
fmt:
go fmt ./...
release-deps:
go get github.com/mitchellh/gox
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:
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}
.PNONY: all combined release fmt release-deps pull tag