Skip to content

Commit 0630e23

Browse files
committed
src/Makefile: Improve build dependencies when running cmake.
Signed-off-by: Damien George <[email protected]>
1 parent 6565f16 commit 0630e23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ codal_build: libmicropython
3030
arm-none-eabi-size $(CODAL_BUILD)/MICROBIT
3131
$(PYTHON3) addlayouttable.py $(SRC_HEX) $(SRC_MAP) -o $(DEST_HEX)
3232

33-
libmicropython: $(CODAL_DIR)/libraries
33+
libmicropython: $(CODAL_LIBRARIES) $(BUILD)
3434
$(call CODAL_CLEAN)
3535
$(MAKE) -C codal_port
3636

37-
$(CODAL_LIBRARIES):
37+
$(CODAL_LIBRARIES) $(BUILD):
3838
$(MKDIR) -p $(BUILD)
3939
$(call CODAL_PATCH)
4040
(cd $(BUILD) && cmake ../$(CODAL_DIR) -DCMAKE_BUILD_TYPE=RelWithDebInfo)

0 commit comments

Comments
 (0)