-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
25 lines (24 loc) · 1.79 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
smoketest:
tinygo build -o /tmp/test.hex -size short -target pyportal ./pininterrupt
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/buttons
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/buzzer
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/goroutines
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/ir
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/light_sensor
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/lis3dh
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/microphone
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/mqtt
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/qspi_flash
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/sample
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/usbcdc
tinygo build -o /tmp/test.hex -size short -target wioterminal ./wioterminal/webclient
go build -o /tmp/test ./wioterminal/webclient
go build -o /tmp/test ./wioterminal/webclient/server
tinygo build -o /tmp/test.hex -size short -target wioterminal ./deviceid
go build -o /tmp/test ./wioterminal/usbcdc/cmd/wio-client
tinygo build -o /tmp/test.hex --target xiao-ble --size short ./xiao-ble/ble-led-server
go build -o /tmp/test ./xiao-ble/ble-led-client
tinygo build -o /tmp/test.hex --target xiao-ble --size short ./xiao-ble/ble-led-client
tinygo build -o /tmp/test.hex --target xiao-ble --size short ./xiao-ble/ble-led-client-xiao
fmt-check:
@unformatted=$$(gofmt -l `find . -name "*.go"`); [ -z "$$unformatted" ] && exit 0; echo "Unformatted:"; for fn in $$unformatted; do echo " $$fn"; done; exit 1