equal
deleted
inserted
replaced
110 ifneq ($(NO_DEPEND_GENERATE),) |
110 ifneq ($(NO_DEPEND_GENERATE),) |
111 # This version minimises the size of dependency files, to contain only .mbg and .rsg deps. |
111 # This version minimises the size of dependency files, to contain only .mbg and .rsg deps. |
112 # It allows resources to be built in the right order but doesn't impose the weight of |
112 # It allows resources to be built in the right order but doesn't impose the weight of |
113 # of full dependency information which can overwhelm make in large builds. |
113 # of full dependency information which can overwhelm make in large builds. |
114 # The strategy is filter lines which don't have .rsg or |
114 # The strategy is filter lines which don't have .rsg or |
115 # .mbg dependencies in them and if to sift eah line to leave out non-relevant things like |
115 # .mbg dependencies in them and if to sift each line to leave out non-relevant things like |
116 # other header files, .hrh files etc. In the end we don't print anything at all if we |
116 # other header files, .hrh files etc. In the end we don't print anything at all if we |
117 # did not find the target. |
117 # did not find the target. |
118 |
118 |
119 define DEPENDENCY_CORRECTOR |
119 define DEPENDENCY_CORRECTOR |
120 { set +x; $(GNUSED) -rn '\% ([^ /]+)\.((rsg)|(mbg))%I {y/\\/ /;p;}' | \ |
120 { set +x; $(GNUSED) -rn '\% ([^ /]+)\.((rsg)|(mbg))%I {y/\\/ /;p;}' | \ |
190 # $(1) is the source |
190 # $(1) is the source |
191 # $(2) is the space separated list of destinations which must be filenames |
191 # $(2) is the space separated list of destinations which must be filenames |
192 |
192 |
193 RELEASABLES:=$$(RELEASABLES) $(2) |
193 RELEASABLES:=$$(RELEASABLES) $(2) |
194 |
194 |
195 $(if $(TARGET_$(call sanitise,$(firstword $2))),,$(eval TARGET_$(call sanitise,$(firstword $2)):=1)$(info <copy source='$1'>$2</copy>)) |
195 $(info <copy source='$1'>$(foreach T,$2,$(if $(TARGET_$(call sanitise,$(T))),,$(T)$(eval TARGET_$(call sanitise,$(firstword $2)):=1)))</copy>) |
196 |
196 |
197 endef # copyresource # |
197 endef # copyresource # |
198 |
198 |
199 ############################################################################### |
199 ############################################################################### |
200 define generateresource |
200 define generateresource |