Makefile 445 B

12345678910111213141516171819
  1. all: build
  2. build:
  3. GOPATH=${CURDIR}/deps:${CURDIR} GO_ENABLED=0 go build -o ../DIST/bin/server src/simple-web/simple-web.go
  4. @#GOPATH=${CURDIR} GO_ENABLED=0 go build -o ../DIST/bin/server src/simple-web/simple-web.go
  5. # Previously
  6. deps:
  7. @mkdir -p deps
  8. GOPATH=${CURDIR}/deps:${CURDIR} go get -v simple-web
  9. test:
  10. cd ../DIST;tmux split "DBHOST=localhost PORT=8080 DEVMODE=1 bin/server"
  11. clean:
  12. @rm -rf bin deps pkg
  13. .PHONY: build deps test