# HG changeset patch # User Tormod Volden # Date 1385296044 -3600 # Node ID 89cb16c2a83c745e77c9d02b8f4cabe485e9188b # Parent 46c80d4b0de10a38eb7d7ff307d630e0b96cd4ee makefiles: Factor out OS9COPY command when using foreach() diff -r 46c80d4b0de1 -r 89cb16c2a83c 3rdparty/packages/arcadepak/makefile --- 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