Skip to content

Commit 0b30a63

Browse files
committed
pbio/test: Fix clean makefile.
Otherwise clean always led to errors such as ../drv/bluetooth/bluetooth_btstack.c:25:10: fatal error: genhdr/pybricks_service.h: No such file or directory 25 | #include "genhdr/pybricks_service.h"
1 parent d05ca21 commit 0b30a63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/pbio/test/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ $(BUILD_PREFIX)/%.d: %.c
167167
$(Q)mkdir -p $(dir $@)
168168
$(Q)$(CC) $(CFLAGS) -MM -MT $(patsubst %.d,%.o,$@) $< > $@
169169

170+
ifneq ($(MAKECMDGOALS),clean)
170171
-include $(DEP)
172+
endif
171173

172174
$(BUILD_PREFIX)/%.o: %.c $(BUILD_PREFIX)/%.d Makefile
173175
$(Q)mkdir -p $(dir $@)

0 commit comments

Comments
 (0)