Skip to content

Commit b001730

Browse files
robert-hhdpgeorge
authored andcommitted
samd/Makefile: Fix a dependency problem with "make -j".
The build directory was not created before attempting to create the generated files in it.
1 parent 560170d commit b001730

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ports/samd/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,13 @@ $(BUILD)/firmware.uf2: $(BUILD)/firmware.bin
194194

195195
pin_af.c: $(BUILD)/$(GEN_PIN_AF)
196196

197-
$(BUILD)/$(GEN_PIN_AF): $(PIN_AF_TABLE_CSV)
197+
$(BUILD)/$(GEN_PIN_AF): $(PIN_AF_TABLE_CSV) | $(HEADER_BUILD)
198198
$(ECHO) "Create $@"
199199
$(Q)$(PYTHON) $(MAKE_PIN_AF) --csv $(PIN_AF_TABLE_CSV) --table $(BUILD)/$(GEN_PIN_AF) --mcu $(MCU_SERIES)
200200

201+
machine_led.c machine_pin.c modsamd.c: $(GEN_PINS_HDR)
201202

202-
$(GEN_PINS_SRC): $(BOARD_PINS)
203+
$(GEN_PINS_SRC) $(GEN_PINS_HDR): $(BOARD_PINS) | $(HEADER_BUILD)
203204
$(ECHO) "Create $@"
204205
$(Q)$(PYTHON) $(MAKE_PINS) --board $(BOARD_PINS) --pins $(GEN_PINS_SRC) --inc $(GEN_PINS_HDR)
205206

0 commit comments

Comments
 (0)