mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 08:48:06 +08:00
34 lines
756 B
Makefile
34 lines
756 B
Makefile
|
|
BENCH=src/example/bench.go
|
|
|
|
install:
|
|
@go get github.com/go-sql-driver/mysql
|
|
@go get github.com/nsf/termbox-go
|
|
@go get github.com/skip2/go-qrcode
|
|
@cp etc/go.snippets ~/.vim/snippets/
|
|
@cp etc/shy.vim ~/.vim/syntax/
|
|
@touch etc/local.shy
|
|
go install $(BENCH)
|
|
# @[ `uname` = "Darwin" ] && md5 `which bench`
|
|
@date
|
|
|
|
build:
|
|
go build $(BENCH)
|
|
|
|
win64:
|
|
GOARCH=amd64 GOOS=windows go build $(BENCH)
|
|
mv bench.exe bench_1.0_win64.exe
|
|
win32:
|
|
GOARCH=386 GOOS=windows go build $(BENCH)
|
|
mv bench.exe bench_1.0_win32.exe
|
|
|
|
linux64:
|
|
GOARCH=amd64 GOOS=linux go build $(BENCH)
|
|
mv bench bench_1.0_linux64
|
|
linux32:
|
|
GOARCH=386 GOOS=linux go build $(BENCH)
|
|
mv bench bench_1.0_linux32
|
|
linux_arm:
|
|
GOARCH=arm GOOS=linux go build $(BENCH)
|
|
mv bench bench_1.0_linux_arm
|