1234567891011121314151617181920 |
- BIN=../DIST/bin/server
- all: build
- build:
- GOPATH=${CURDIR} GO_ENABLED=0 go build -o ${BIN} src/simple-web/simple-web.go
- @#GOPATH=${CURDIR} GO_ENABLED=0 go build -o ../DIST/bin/server src/simple-web/simple-web.go
- # Previously
- deps:
- #@mkdir -p deps
- #GOPATH=${CURDIR}/deps:${CURDIR} go get -v simple-web
- test:
- cd ../DIST;tmux split "DBHOST=localhost PORT=8080 DEVMODE=1 bin/server"
- clean:
- @rm -rf bin deps pkg
- .PHONY: build deps test
|