Last active
November 17, 2016 12:35
-
-
Save gmaliar/320cad4b5baa86bb7e3b7e3c6742b25a to your computer and use it in GitHub Desktop.
Usage: ./socialblade_crawler <Twitch username>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BINARY=socialblade_crawler | |
| VERSION=1.0.0 | |
| BUILD=`git rev-parse HEAD` | |
| LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}" | |
| all: deps clean build | |
| deps: | |
| go get | |
| build: | |
| GOOS=windows GOARCH=amd64 go build ${LDFLAGS} -v -o pkg/${BINARY}.exe | |
| GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -v -o pkg/${BINARY}_linux | |
| GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -v -o pkg/${BINARY}_mac | |
| clean: | |
| if [ -f ${BINARY} ] ; then rm ${BINARY} ; fi | |
| .PHONY: all deps build clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment