diff 3rdparty/packages/sierra/manhunter2/makefile @ 2873:46c80d4b0de1

makefiles: Factor out OS9ATTR_* command when using foreach() in order to call the command once with all the files.
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 24 Nov 2013 13:26:20 +0100
parents cfa6222348f7
children 28ed72477814
line wrap: on
line diff
--- a/3rdparty/packages/sierra/manhunter2/makefile	Sun Nov 24 12:07:31 2013 +0100
+++ b/3rdparty/packages/sierra/manhunter2/makefile	Sun Nov 24 13:26:20 2013 +0100
@@ -91,7 +91,7 @@
 	$(RM) os9boot kernel
 	$(MAKDIR) $@,CMDS
 	$(OS9COPY) $(CMDS) $@,CMDS
-	$(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
+	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
 	$(MERGE) $(BOOTCMDS)>shell
 	$(OS9COPY) shell $@,CMDS
 	$(RM) shell
@@ -123,7 +123,7 @@
 	$(RM) os9boot kernel
 	$(MAKDIR) $@,CMDS
 	$(OS9COPY) $(CMDS) $@,CMDS
-	$(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
+	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
 	$(MERGE) $(BOOTCMDS)>shell
 	$(OS9COPY) shell $@,CMDS
 	$(RM) shell
@@ -145,7 +145,7 @@
 	$(RM) os9boot kernel
 	$(MAKDIR) $@,CMDS
 	$(OS9COPY) $(CMDS) $@,CMDS
-	$(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
+	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
 	$(MERGE) $(BOOTCMDS)>shell
 	$(OS9COPY) shell $@,CMDS
 	$(RM) shell