rp2/Makefile: Regenerate cmake if generated Makefile missing.

`CMakeCache.txt` can exist even if cmake failed. Use `Makefile` instead.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared 2022-07-04 11:14:47 +10:00 committed by Damien George
parent 85be3d3da8
commit 651b370484
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ CMAKE_ARGS += -DCMAKE_BUILD_TYPE=Debug
endif endif
all: all:
[ -e $(BUILD)/CMakeCache.txt ] || cmake -S . -B $(BUILD) -DPICO_BUILD_DOCS=0 ${CMAKE_ARGS} [ -e $(BUILD)/Makefile ] || cmake -S . -B $(BUILD) -DPICO_BUILD_DOCS=0 ${CMAKE_ARGS}
$(MAKE) $(MAKESILENT) -C $(BUILD) $(MAKE) $(MAKESILENT) -C $(BUILD)
clean: clean: