forked from x/ContextOS
32 lines
859 B
Makefile
32 lines
859 B
Makefile
|
|
PUBLISH=usr/publish
|
|
BENCH=src/extend/bench.go
|
|
BUILD=go build -o $(PUBLISH)/
|
|
|
|
install:prepare
|
|
GOPATH=$(PWD):$(GOPATH) go install $(BENCH) && date && echo
|
|
@bin/boot.sh restart && date
|
|
|
|
prepare:
|
|
@go get github.com/nsf/termbox-go
|
|
@go get github.com/gorilla/websocket
|
|
@go get github.com/go-sql-driver/mysql
|
|
@go get github.com/gomodule/redigo/redis
|
|
@go get github.com/gomarkdown/markdown
|
|
@go get github.com/skip2/go-qrcode
|
|
@go get gopkg.in/gomail.v2
|
|
|
|
linux_arm:
|
|
GOARCH=arm GOOS=linux $(BUILD)bench.linux.arm $(BENCH)
|
|
linux32:
|
|
GOARCH=386 GOOS=linux $(BUILD)bench.linux.386 $(BENCH)
|
|
linux64:
|
|
GOARCH=amd64 GOOS=linux $(BUILD)bench.linux.amd64 $(BENCH)
|
|
darwin:
|
|
GOARCH=amd64 GOOS=darwin $(BUILD)bench.darwin.amd64 $(BENCH)
|
|
win64:
|
|
GOARCH=amd64 GOOS=windows $(BUILD)bench.win64.exe $(BENCH)
|
|
win32:
|
|
GOARCH=386 GOOS=windows $(BUILD)bench.win32.exe $(BENCH)
|
|
|