Makefile 443 B

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