-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (18 loc) · 1.08 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
clean:
@rm -rf build
FMT_PATHS = ./
fmt-check:
@unformatted=$$(gofmt -l $(FMT_PATHS)); [ -z "$$unformatted" ] && exit 0; echo "Unformatted:"; for fn in $$unformatted; do echo " $$fn"; done; exit 1
smoke-test:
@mkdir -p build
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/blinky
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/i2s
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/pulsar
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/tufty
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/ws2812b
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/blinky
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/i2s
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/pulsar
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/tufty
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/ws2812b
test: clean fmt-check smoke-test