Page 1 of 1

py/mkrules.mk $(HEADER_BUILD)/qstr.i.last - why are headers not dependencies?

Posted: Wed Sep 05, 2018 3:29 pm
by jickster

Code: Select all

$(HEADER_BUILD)/qstr.i.last: $(SRC_QSTR) $(QSTR_GLOBAL_DEPENDENCIES) | $(HEADER_BUILD)/mpversion.h
	$(ECHO) "GEN $@"
	$(Q)$(CPP) $(QSTR_GEN_EXTRA_CFLAGS) $(CFLAGS) $(if $(filter $?,$(QSTR_GLOBAL_DEPENDENCIES)),$^,$(if $?,$?,$^)) >$(HEADER_BUILD)/qstr.i.last;
Why is it that the headers are not dependencies?
Seems that if they contain MP_QSTR_* and they change, that would be relevant to these prebuild steps.