all: prereq serial.uf2 prereq: test -d "${PICO_SDK_PATH}" || \ ( echo "env var PICO_SDK_PATH is not set."; false ) serial.uf2: .CMakeLists.txt.ts build/serial.uf2 cp -pf build/serial.uf2 . build/serial.uf2: serial.c cd build && make .CMakeLists.txt.ts: CMakeLists.txt if [ -d build ] ; then rm -rf build ; fi mkdir build cd build && cmake ..