mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
21 lines
479 B
Makefile
21 lines
479 B
Makefile
PICO_SDK_PATH ?= $(HOME)/src/pico-sdk
|
|
PICO_BOARD ?= pico2_w
|
|
BUILD ?= build/$(PICO_BOARD)
|
|
.PHONY: all build flash clean
|
|
|
|
all: build
|
|
|
|
build: file_data.c
|
|
PICO_SDK_PATH=$(PICO_SDK_PATH) cmake -S . -B $(BUILD) -DPICO_BOARD=$(PICO_BOARD) -DCMAKE_BUILD_TYPE=Release
|
|
cmake --build $(BUILD) -j 4
|
|
|
|
flash: build
|
|
picotool load -f $(BUILD)/firmware.uf2
|
|
picotool reboot
|
|
|
|
file_data.c: dashboard.html
|
|
node ../../../resources/html2c.js dashboard.html -o $@
|
|
|
|
clean:
|
|
rm -rf build file_data.c
|