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

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

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

Post by jickster » Wed Sep 05, 2018 3:29 pm

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.

Post Reply