12345678910111213141516171819202122232425262728293031323334353637 |
- .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 -ldflags="-s -w -X git.riomhaire.com/gremlin/elizaservice/infrastructure.Version=$(V)" 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 -ldflags="-s -w -X git.riomhaire.com/gremlin/elizaservice/infrastructure.Version=$(V)" 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
|