[scripts] Prevent mixing implicit and normal rules

This commit is contained in:
Romain Goyet
2019-03-06 10:12:31 +01:00
committed by LeaNumworks
parent 4aebba88dd
commit 160f202860

View File

@@ -37,7 +37,9 @@ info:
# We need to mark those directories as precious, otherwise Make will try to get
# rid of them upon completion (and fail, since those folders won't be empty).
.PRECIOUS: $(BUILD_DIR)/. $(BUILD_DIR)%/.
$(BUILD_DIR)/. $(BUILD_DIR)%/.:
$(BUILD_DIR)/.:
$(Q) mkdir -p $(dir $@)
$(BUILD_DIR)%/.:
$(Q) mkdir -p $(dir $@)
# To make objects dependent on their directory, we need a second expansion