-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (44 loc) · 1.58 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Build file for Waybeams workspace
dev-install:
git submodule init
git submodule sync
git submodule update --recursive
cd src/github.com/waybeams/assert && git pull origin master && git checkout master && cd -
cd src/github.com/waybeams/waybeams && git pull origin master && git checkout master && cd -
mkdir -p vendor/src
go get -u github.com/waybeams/assert/...
go get -u github.com/waybeams/waybeams/...
make test
clean:
rm -rf bin/gobot-hello
rm -f bin/todo-desktop
rm -f bin/todo.min.js
rm -f bin/todo.min.js.map
rm -f bin/todo.min.gz
run:
go run ./src/github.com/waybeams/waybeams/examples/todo/cmd/todo-desktop/main.go
# Temporary dev task
dev-pi: build-pi
scp ./bin/gobot-hello raspy:/home/pi/hello
ssh -t raspy "sudo ./hello"
test-pi:
./bin/gotest-color test ./src/github.com/lukebayes/learning/gobot/...
build-pi:
GOARM=6 GOARCH=arm GOOS=linux go build -o bin/gobot-hello ./src/github.com/lukebayes/learning/gobot/rotary/example1/main.go
build:
go build -ldflags="-s -w" -o bin/todo-desktop ./src/github.com/waybeams/waybeams/examples/todo/cmd/todo-desktop/main.go
serve:
gopherjs serve github.com/waybeams/waybeams/examples/todo/cmd/todo-browser/main.go
run-js:
gopherjs run ./src/github.com/waybeams/waybeams/examples/todo/cmd/todo-browser/main.go
build-js:
gopherjs build -m -o bin/todo.min.js ./src/github.com/waybeams/waybeams/examples/todo/cmd/todo-browser/main.go
rm -f bin/todo.min.gz
gzip -c -8 bin/todo.min.js > bin/todo.min.gz
ls -la bin/
test:
./bin/gotest-color test ./src/...
test-v:
./bin/gotest-color test -v ./src/...
bench:
go test ./src/... -bench=.