diff options
Diffstat (limited to 'Makerules')
-rw-r--r-- | Makerules | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makerules b/Makerules index bf03b38a9c..9986730d97 100644 --- a/Makerules +++ b/Makerules @@ -267,6 +267,20 @@ ifndef sysd-rules-done no_deps=t endif +-include $(common-objpfx)includes.mk +ifneq ($(+common-includes),$(saved-includes)) +# Recreate includes.mk (and includes). +includes-force = FORCE +FORCE: +endif +$(common-objpfx)includes.mk: $(includes-force) + -@rm -f $@T $(common-objpfx)includesT + for inc in $(+common-includes); do echo "$$inc"; done \ + > $(common-objpfx)includesT + mv -f $(common-objpfx)includesT $(common-objpfx)includes + echo 'saved-includes := $(+common-includes)' > $@T + mv -f $@T $@ + define o-iterator-doit $(objpfx)%$o: %.S $(before-compile); $$(compile-command.S) endef |