.DEFAULT_GOAL := everything V="v1.0.$(shell date +%Y%m%d%H%M%S)" dependencies: @echo Downloading Dependencies @go get ./... build: dependencies @echo Compiling Apps @echo --- eliza-server $(V) @go build -o eliza-server git.riomhaire.com/gremlin/elizaservice @upx -9 eliza-server @cp eliza-server ${GOPATH}/bin @echo Done Compiling Apps build-arm: dependencies @echo Compiling Apps @echo --- eliza-server arm version @GOOS=linux GOARCH=arm GOARM=5 go build -o eliza-server-arm git.riomhaire.com/gremlin/elizaservice @upx -9 eliza-server-arm @echo Done Compiling Apps test: @echo Running Unit Tests @go test ./... clean: @echo Cleaning @go clean @rm -f eliza-server @rm -f eliza-server-arm @rm -f coverage*.html @find . -name "debug.test" -exec rm -f {} \; everything: clean build test @echo Done