changeset 2874:89cb16c2a83c

makefiles: Factor out OS9COPY command when using foreach()
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 24 Nov 2013 13:27:24 +0100
parents 46c80d4b0de1
children 3231faca9642
files 3rdparty/packages/arcadepak/makefile
diffstat 1 files changed, 40 insertions(+), 40 deletions(-) [+]
line wrap: on
line diff
--- a/3rdparty/packages/arcadepak/makefile	Sun Nov 24 13:26:20 2013 +0100
+++ b/3rdparty/packages/arcadepak/makefile	Sun Nov 24 13:27:24 2013 +0100
@@ -98,22 +98,22 @@
 	$(MAKDIR) $@,CMDS
 	$(OS9COPY) shell $@,CMDS
 	$(OS9ATTR_EXEC) $@,CMDS/shell
-	$(foreach file, $(CMDS), $(OS9COPY) $(6809L2)/cmds/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
-	$(foreach file, $(SMASHCMDS), $(OS9COPY) smash/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(SMASHCMDS),smash/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file))
-	$(foreach file, $(THEXCMDS), $(OS9COPY) thexder/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(THEXCMDS),thexder/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file))
-	$(foreach file, $(SHANGCMDS), $(OS9COPY) shanghai/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(SHANGCMDS),shanghai/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
 	$(MAKDIR) $@,SYS
-	$(foreach file, $(SMASHSYS), $(OS9COPY) smash/$(file) $@,SYS/$(file);)
-	$(foreach file, $(THEXSYS), $(OS9COPY) thexder/$(file) $@,SYS/$(file);)
-	$(foreach file, $(SHANGSYS), $(OS9COPY) shanghai/$(file) $@,SYS/$(file);)
-	$(foreach file, $(SMASHROOT), $(OS9COPY) smash/$(file) $@,$(file);)
-	$(foreach file, $(THEXROOT), $(OS9COPY) thexder/$(file) $@,$(file);)
-	$(foreach file, $(SHANGROOT), $(OS9COPY) shanghai/$(file) $@,$(file);)
+	$(OS9COPY) $(foreach file,$(SMASHSYS),smash/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(THEXSYS),thexder/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(SHANGSYS),shanghai/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(SMASHROOT),smash/$(file) $@,$(file))
+	$(OS9COPY) $(foreach file,$(THEXROOT),thexder/$(file) $@,$(file))
+	$(OS9COPY) $(foreach file,$(SHANGROOT),shanghai/$(file) $@,$(file))
 	$(CPL) startup $@,
 
 $(DISK_80D): all
@@ -127,22 +127,22 @@
 	$(MAKDIR) $@,CMDS
 	$(OS9COPY) shell $@,CMDS/shell
 	$(OS9ATTR_EXEC) $@,CMDS/shell
-	$(foreach file, $(CMDS), $(OS9COPY) $(6809L2)/cmds/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
-	$(foreach file, $(SMASHCMDS), $(OS9COPY) smash/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(SMASHCMDS),smash/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file))
-	$(foreach file, $(THEXCMDS), $(OS9COPY) thexder/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(THEXCMDS),thexder/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file))
-	$(foreach file, $(SHANGCMDS), $(OS9COPY) shanghai/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(SHANGCMDS),shanghai/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
 	$(MAKDIR) $@,SYS
-	$(foreach file, $(SMASHSYS), $(OS9COPY) smash/$(file) $@,SYS/$(file);)
-	$(foreach file, $(THEXSYS), $(OS9COPY) thexder/$(file) $@,SYS/$(file);)
-	$(foreach file, $(SHANGSYS), $(OS9COPY) shanghai/$(file) $@,SYS/$(file);)
-	$(foreach file, $(SMASHROOT), $(OS9COPY) smash/$(file) $@,$(file);)
-	$(foreach file, $(THEXROOT), $(OS9COPY) thexder/$(file) $@,$(file);)
-	$(foreach file, $(SHANGROOT), $(OS9COPY) shanghai/$(file) $@,$(file);)
+	$(OS9COPY) $(foreach file,$(SMASHSYS),smash/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(THEXSYS),thexder/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(SHANGSYS),shanghai/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(SMASHROOT),smash/$(file) $@,$(file))
+	$(OS9COPY) $(foreach file,$(THEXROOT),thexder/$(file) $@,$(file))
+	$(OS9COPY) $(foreach file,$(SHANGROOT),shanghai/$(file) $@,$(file))
 	$(CPL) startup $@,
 
 $(DISK_DW): all
@@ -156,22 +156,22 @@
 	$(MAKDIR) $@,CMDS
 	$(OS9COPY) shell $@,CMDS/shell
 	$(OS9ATTR_EXEC) $@,CMDS/shell
-	$(foreach file, $(CMDS), $(OS9COPY) $(6809L2)/cmds/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
-	$(foreach file, $(SMASHCMDS), $(OS9COPY) smash/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(SMASHCMDS),smash/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file))
-	$(foreach file, $(THEXCMDS), $(OS9COPY) thexder/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(THEXCMDS),thexder/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file))
-	$(foreach file, $(SHANGCMDS), $(OS9COPY) shanghai/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(SHANGCMDS),shanghai/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
 	$(MAKDIR) $@,SYS
-	$(foreach file, $(SMASHSYS), $(OS9COPY) smash/$(file) $@,SYS/$(file);)
-	$(foreach file, $(THEXSYS), $(OS9COPY) thexder/$(file) $@,SYS/$(file);)
-	$(foreach file, $(SHANGSYS), $(OS9COPY) shanghai/$(file) $@,SYS/$(file);)
-	$(foreach file, $(SMASHROOT), $(OS9COPY) smash/$(file) $@,$(file);)
-	$(foreach file, $(THEXROOT), $(OS9COPY) thexder/$(file) $@,$(file);)
-	$(foreach file, $(SHANGROOT), $(OS9COPY) shanghai/$(file) $@,$(file);)
+	$(OS9COPY) $(foreach file,$(SMASHSYS),smash/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(THEXSYS),thexder/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(SHANGSYS),shanghai/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(SMASHROOT),smash/$(file) $@,$(file))
+	$(OS9COPY) $(foreach file,$(THEXROOT),thexder/$(file) $@,$(file))
+	$(OS9COPY) $(foreach file,$(SHANGROOT),shanghai/$(file) $@,$(file))
 	$(CPL) startup $@,
 
 $(DISK_BECKER): all
@@ -185,22 +185,22 @@
 	$(MAKDIR) $@,CMDS
 	$(OS9COPY) shell $@,CMDS/shell
 	$(OS9ATTR_EXEC) $@,CMDS/shell
-	$(foreach file, $(CMDS), $(OS9COPY) $(6809L2)/cmds/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
-	$(foreach file, $(SMASHCMDS), $(OS9COPY) smash/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(SMASHCMDS),smash/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file))
-	$(foreach file, $(THEXCMDS), $(OS9COPY) thexder/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(THEXCMDS),thexder/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file))
-	$(foreach file, $(SHANGCMDS), $(OS9COPY) shanghai/$(file) $@,CMDS/$(file);)
+	$(OS9COPY) $(foreach file,$(SHANGCMDS),shanghai/$(file) $@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file))
 	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
 	$(MAKDIR) $@,SYS
-	$(foreach file, $(SMASHSYS), $(OS9COPY) smash/$(file) $@,SYS/$(file);)
-	$(foreach file, $(THEXSYS), $(OS9COPY) thexder/$(file) $@,SYS/$(file);)
-	$(foreach file, $(SHANGSYS), $(OS9COPY) shanghai/$(file) $@,SYS/$(file);)
-	$(foreach file, $(SMASHROOT), $(OS9COPY) smash/$(file) $@,$(file);)
-	$(foreach file, $(THEXROOT), $(OS9COPY) thexder/$(file) $@,$(file);)
-	$(foreach file, $(SHANGROOT), $(OS9COPY) shanghai/$(file) $@,$(file);)
+	$(OS9COPY) $(foreach file,$(SMASHSYS),smash/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(THEXSYS),thexder/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(SHANGSYS),shanghai/$(file) $@,SYS/$(file))
+	$(OS9COPY) $(foreach file,$(SMASHROOT),smash/$(file) $@,$(file))
+	$(OS9COPY) $(foreach file,$(THEXROOT),thexder/$(file) $@,$(file))
+	$(OS9COPY) $(foreach file,$(SHANGROOT),shanghai/$(file) $@,$(file))
 	$(CPL) startup $@,
 
 clean:	dskclean