comparison 3rdparty/packages/sierra/goldrush/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 91d0226c431a
children 28ed72477814
comparison
equal deleted inserted replaced
2872:dbc6d0647ac4 2873:46c80d4b0de1
89 $(MERGE) $(KERNEL_DW)>kernel 89 $(MERGE) $(KERNEL_DW)>kernel
90 $(OS9GEN) $@ -b=os9boot -t=kernel 90 $(OS9GEN) $@ -b=os9boot -t=kernel
91 $(RM) os9boot kernel 91 $(RM) os9boot kernel
92 $(MAKDIR) $@,CMDS 92 $(MAKDIR) $@,CMDS
93 $(OS9COPY) $(CMDS) $@,CMDS 93 $(OS9COPY) $(CMDS) $@,CMDS
94 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 94 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
95 $(MERGE) $(BOOTCMDS)>shell 95 $(MERGE) $(BOOTCMDS)>shell
96 $(OS9COPY) shell $@,CMDS 96 $(OS9COPY) shell $@,CMDS
97 $(RM) shell 97 $(RM) shell
98 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r 98 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
99 $(OS9RENAME) $@,CMDS/sierra AutoEx 99 $(OS9RENAME) $@,CMDS/sierra AutoEx
112 $(MERGE) $(KERNEL_DW_BECKER)>kernel 112 $(MERGE) $(KERNEL_DW_BECKER)>kernel
113 $(OS9GEN) $@ -b=os9boot -t=kernel 113 $(OS9GEN) $@ -b=os9boot -t=kernel
114 $(RM) os9boot kernel 114 $(RM) os9boot kernel
115 $(MAKDIR) $@,CMDS 115 $(MAKDIR) $@,CMDS
116 $(OS9COPY) $(CMDS) $@,CMDS 116 $(OS9COPY) $(CMDS) $@,CMDS
117 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 117 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
118 $(MERGE) $(BOOTCMDS)>shell 118 $(MERGE) $(BOOTCMDS)>shell
119 $(OS9COPY) shell $@,CMDS 119 $(OS9COPY) shell $@,CMDS
120 $(RM) shell 120 $(RM) shell
121 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r 121 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
122 $(OS9RENAME) $@,CMDS/sierra AutoEx 122 $(OS9RENAME) $@,CMDS/sierra AutoEx
135 $(MERGE) $(KERNEL_FLOPPY)>kernel 135 $(MERGE) $(KERNEL_FLOPPY)>kernel
136 $(OS9GEN) $@ -b=os9boot -t=kernel 136 $(OS9GEN) $@ -b=os9boot -t=kernel
137 $(RM) os9boot kernel 137 $(RM) os9boot kernel
138 $(MAKDIR) $@,CMDS 138 $(MAKDIR) $@,CMDS
139 $(OS9COPY) $(CMDS) $@,CMDS 139 $(OS9COPY) $(CMDS) $@,CMDS
140 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 140 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
141 $(MERGE) $(BOOTCMDS)>shell 141 $(MERGE) $(BOOTCMDS)>shell
142 $(OS9COPY) shell $@,CMDS 142 $(OS9COPY) shell $@,CMDS
143 $(RM) shell 143 $(RM) shell
144 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r 144 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
145 $(OS9RENAME) $@,CMDS/sierra AutoEx 145 $(OS9RENAME) $@,CMDS/sierra AutoEx