# HG changeset patch # User Tormod Volden # Date 1373660765 -7200 # Node ID 95923f06507036213140d75db5fdbf0dfb7e3642 # Parent 84d9d5765057acabac41330f533913f8a0df46c9 arcadepak/makefile: Call "os9 copy" with multiple files Instead of calling "os9 copy" for every single file, copy all files with one call. Speeds up disk image build time. diff -r 84d9d5765057 -r 95923f065070 3rdparty/packages/arcadepak/makefile --- a/3rdparty/packages/arcadepak/makefile Fri Jul 12 01:01:17 2013 +0200 +++ b/3rdparty/packages/arcadepak/makefile Fri Jul 12 22:26:05 2013 +0200 @@ -95,22 +95,22 @@ $(MAKDIR) $@,CMDS $(CP) shell $@,CMDS $(OS9ATTR_EXEC) $@,CMDS/shell - $(foreach file, $(CMDS), $(CP) $(6809L2)/cmds/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) - $(foreach file, $(SMASHCMDS), $(CP) smash/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(SMASHCMDS),smash/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file)) - $(foreach file, $(THEXCMDS), $(CP) thexder/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(THEXCMDS),thexder/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file)) - $(foreach file, $(SHANGCMDS), $(CP) shanghai/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(SHANGCMDS),shanghai/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file)) $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) $(MAKDIR) $@,SYS - $(foreach file, $(SMASHSYS), $(CP) smash/$(file) $@,SYS/$(file);) - $(foreach file, $(THEXSYS), $(CP) thexder/$(file) $@,SYS/$(file);) - $(foreach file, $(SHANGSYS), $(CP) shanghai/$(file) $@,SYS/$(file);) - $(foreach file, $(SMASHROOT), $(CP) smash/$(file) $@,$(file);) - $(foreach file, $(THEXROOT), $(CP) thexder/$(file) $@,$(file);) - $(foreach file, $(SHANGROOT), $(CP) shanghai/$(file) $@,$(file);) + $(CP) $(foreach file,$(SMASHSYS),smash/$(file)) $@,SYS + $(CP) $(foreach file,$(THEXSYS),thexder/$(file)) $@,SYS + $(CP) $(foreach file,$(SHANGSYS),shanghai/$(file)) $@,SYS + $(CP) $(foreach file,$(SMASHROOT),smash/$(file)) $@, + $(CP) $(foreach file,$(THEXROOT),thexder/$(file)) $@, + $(CP) $(foreach file,$(SHANGROOT),shanghai/$(file)) $@, $(CPL) startup $@, $(DISK_80D): all @@ -124,22 +124,22 @@ $(MAKDIR) $@,CMDS $(CP) shell $@,CMDS/shell $(OS9ATTR_EXEC) $@,CMDS/shell - $(foreach file, $(CMDS), $(CP) $(6809L2)/cmds/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) - $(foreach file, $(SMASHCMDS), $(CP) smash/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(SMASHCMDS),smash/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file)) - $(foreach file, $(THEXCMDS), $(CP) thexder/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(THEXCMDS),thexder/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file)) - $(foreach file, $(SHANGCMDS), $(CP) shanghai/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(SHANGCMDS),shanghai/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file)) $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) $(MAKDIR) $@,SYS - $(foreach file, $(SMASHSYS), $(CP) smash/$(file) $@,SYS/$(file);) - $(foreach file, $(THEXSYS), $(CP) thexder/$(file) $@,SYS/$(file);) - $(foreach file, $(SHANGSYS), $(CP) shanghai/$(file) $@,SYS/$(file);) - $(foreach file, $(SMASHROOT), $(CP) smash/$(file) $@,$(file);) - $(foreach file, $(THEXROOT), $(CP) thexder/$(file) $@,$(file);) - $(foreach file, $(SHANGROOT), $(CP) shanghai/$(file) $@,$(file);) + $(CP) $(foreach file,$(SMASHSYS),smash/$(file)) $@,SYS + $(CP) $(foreach file,$(THEXSYS),thexder/$(file)) $@,SYS + $(CP) $(foreach file,$(SHANGSYS),shanghai/$(file)) $@,SYS + $(CP) $(foreach file,$(SMASHROOT),smash/$(file)) $@, + $(CP) $(foreach file,$(THEXROOT),thexder/$(file)) $@, + $(CP) $(foreach file,$(SHANGROOT),shanghai/$(file)) $@, $(CPL) startup $@, $(DISK_DW): all @@ -153,22 +153,22 @@ $(MAKDIR) $@,CMDS $(CP) shell $@,CMDS/shell $(OS9ATTR_EXEC) $@,CMDS/shell - $(foreach file, $(CMDS), $(CP) $(6809L2)/cmds/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) - $(foreach file, $(SMASHCMDS), $(CP) smash/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(SMASHCMDS),smash/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file)) - $(foreach file, $(THEXCMDS), $(CP) thexder/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(THEXCMDS),thexder/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file)) - $(foreach file, $(SHANGCMDS), $(CP) shanghai/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(SHANGCMDS),shanghai/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file)) $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) $(MAKDIR) $@,SYS - $(foreach file, $(SMASHSYS), $(CP) smash/$(file) $@,SYS/$(file);) - $(foreach file, $(THEXSYS), $(CP) thexder/$(file) $@,SYS/$(file);) - $(foreach file, $(SHANGSYS), $(CP) shanghai/$(file) $@,SYS/$(file);) - $(foreach file, $(SMASHROOT), $(CP) smash/$(file) $@,$(file);) - $(foreach file, $(THEXROOT), $(CP) thexder/$(file) $@,$(file);) - $(foreach file, $(SHANGROOT), $(CP) shanghai/$(file) $@,$(file);) + $(CP) $(foreach file,$(SMASHSYS),smash/$(file)) $@,SYS + $(CP) $(foreach file,$(THEXSYS),thexder/$(file)) $@,SYS + $(CP) $(foreach file,$(SHANGSYS),shanghai/$(file)) $@,SYS + $(CP) $(foreach file,$(SMASHROOT),smash/$(file)) $@, + $(CP) $(foreach file,$(THEXROOT),thexder/$(file)) $@, + $(CP) $(foreach file,$(SHANGROOT),shanghai/$(file)) $@, $(CPL) startup $@, $(DISK_BECKER): all @@ -182,22 +182,22 @@ $(MAKDIR) $@,CMDS $(CP) shell $@,CMDS/shell $(OS9ATTR_EXEC) $@,CMDS/shell - $(foreach file, $(CMDS), $(CP) $(6809L2)/cmds/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(CMDS),$(6809L2)/cmds/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) - $(foreach file, $(SMASHCMDS), $(CP) smash/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(SMASHCMDS),smash/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(SMASHCMDS),$@,CMDS/$(file)) - $(foreach file, $(THEXCMDS), $(CP) thexder/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(THEXCMDS),thexder/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(THEXCMDS),$@,CMDS/$(file)) - $(foreach file, $(SHANGCMDS), $(CP) shanghai/$(file) $@,CMDS/$(file);) + $(CP) $(foreach file,$(SHANGCMDS),shanghai/$(file)) $@,CMDS $(OS9ATTR_EXEC) $(foreach file,$(SHANGCMDS),$@,CMDS/$(file)) $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) $(MAKDIR) $@,SYS - $(foreach file, $(SMASHSYS), $(CP) smash/$(file) $@,SYS/$(file);) - $(foreach file, $(THEXSYS), $(CP) thexder/$(file) $@,SYS/$(file);) - $(foreach file, $(SHANGSYS), $(CP) shanghai/$(file) $@,SYS/$(file);) - $(foreach file, $(SMASHROOT), $(CP) smash/$(file) $@,$(file);) - $(foreach file, $(THEXROOT), $(CP) thexder/$(file) $@,$(file);) - $(foreach file, $(SHANGROOT), $(CP) shanghai/$(file) $@,$(file);) + $(CP) $(foreach file,$(SMASHSYS),smash/$(file)) $@,SYS + $(CP) $(foreach file,$(THEXSYS),thexder/$(file)) $@,SYS + $(CP) $(foreach file,$(SHANGSYS),shanghai/$(file)) $@,SYS + $(CP) $(foreach file,$(SMASHROOT),smash/$(file)) $@, + $(CP) $(foreach file,$(THEXROOT),thexder/$(file)) $@, + $(CP) $(foreach file,$(SHANGROOT),shanghai/$(file)) $@, $(CPL) startup $@, clean: dskclean