sbsv2/raptor/lib/flm/resource.flm
branchfix
changeset 539 cbc9d85d999d
parent 538 71918f4840ed
child 542 80c21f026f0a
--- a/sbsv2/raptor/lib/flm/resource.flm	Fri May 07 17:36:16 2010 +0100
+++ b/sbsv2/raptor/lib/flm/resource.flm	Mon May 10 13:31:44 2010 +0100
@@ -112,7 +112,7 @@
     # It allows resources to be built in the right order but doesn't impose the weight of
     # of full dependency information which can overwhelm make in large builds.
     # The strategy is filter lines which don't have .rsg or 
-    # .mbg dependencies in them and if to sift eah line to leave out non-relevant things like
+    # .mbg dependencies in them and if to sift each line to leave out non-relevant things like
     # other header files, .hrh files etc.  In the end we don't print anything at all if we
     # did not find the target.
 
@@ -192,7 +192,7 @@
 
    RELEASABLES:=$$(RELEASABLES) $(2)
 
-   $(if $(TARGET_$(call sanitise,$(firstword $2))),,$(eval TARGET_$(call sanitise,$(firstword $2)):=1)$(info <copy source='$1'>$2</copy>))
+   $(info <copy source='$1'>$(foreach T,$2,$(if $(TARGET_$(call sanitise,$(T))),,$(T)$(eval TARGET_$(call sanitise,$(firstword $2)):=1)))</copy>)
  
 endef # copyresource #