Mercurial > hg > Members > kono > nitros9-code
diff level1/dalpha/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 | 1addfd8c9d5f |
line wrap: on
line diff
--- a/level1/dalpha/makefile Sun Nov 24 12:07:31 2013 +0100 +++ b/level1/dalpha/makefile Sun Nov 24 13:26:20 2013 +0100 @@ -139,15 +139,15 @@ $(MAKDIR) $@,CMDS $(MAKDIR) $@,SYS $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS - $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell $(CD) sys; $(CPL) $(SYS) ../$@,SYS - $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) + $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file)) $(MAKDIR) $@,DEFS $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS - $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) + $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) $(CPL) $(ROOTFILES) $@,. - $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) + $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file)) $(RM) $(LDSK360K_1) $(SOFTLINK) $@ $(LDSK360K_1) @@ -158,30 +158,30 @@ $(MAKDIR) $@,NITROS9/6809L1 $(MAKDIR) $@,NITROS9/6809L1/CMDS $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS - $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/6809L1/CMDS/$(file)) $(OS9RENAME) $@,NITROS9/6809L1/CMDS//$(WHICHSHELL) shell $(MAKDIR) $@,NITROS9/6809L1/MODULES $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK - $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL - $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/6809L1/MODULES/KERNEL/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS - $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/6809L1/MODULES/SYSMODS/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS - $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/6809L1/MODULES/CLOCKS/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF - $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/6809L1/MODULES/RBF/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF - $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/6809L1/MODULES/SCF/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE - $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/6809L1/MODULES/PIPE/$(file)) $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS @@ -197,42 +197,42 @@ $(MAKDIR) $@,SYS $(MAKDIR) $@,DEFS $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS - $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell $(CD) sys; $(CPL) $(SYS) ../$@,SYS - $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) + $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file)) $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS - $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) + $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) $(CPL) $(ROOTFILES) $@,. - $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) + $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file)) $(MAKDIR) $@,NITROS9 $(MAKDIR) $@,NITROS9/6809L1 $(MAKDIR) $@,NITROS9/6809L1/CMDS $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS - $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/6809L1/CMDS/$(file)) $(OS9RENAME) $@,NITROS9/6809L1/CMDS/$(WHICHSHELL) shell $(MAKDIR) $@,NITROS9/6809L1/MODULES $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK - $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL - $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/6809L1/MODULES/KERNEL/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS - $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/6809L1/MODULES/SYSMODS/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS - $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/6809L1/MODULES/CLOCKS/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF - $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/6809L1/MODULES/RBF/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF - $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/6809L1/MODULES/SCF/$(file)) $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE - $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) + $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/6809L1/MODULES/PIPE/$(file)) $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS