comparison 3rdparty/packages/sierra/spacequest2/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 28ed72477814
comparison
equal deleted inserted replaced
2872:dbc6d0647ac4 2873:46c80d4b0de1
99 $(MERGE) $(KERNEL)>kernel 99 $(MERGE) $(KERNEL)>kernel
100 $(OS9GEN) $@ -b=os9boot -t=kernel 100 $(OS9GEN) $@ -b=os9boot -t=kernel
101 $(RM) os9boot kernel 101 $(RM) os9boot kernel
102 $(MAKDIR) $@,CMDS 102 $(MAKDIR) $@,CMDS
103 $(OS9COPY) $(CMDS) $@,CMDS 103 $(OS9COPY) $(CMDS) $@,CMDS
104 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 104 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
105 $(MERGE) $(BOOTCMDS)>shell 105 $(MERGE) $(BOOTCMDS)>shell
106 $(OS9COPY) shell $@,CMDS 106 $(OS9COPY) shell $@,CMDS
107 $(RM) shell 107 $(RM) shell
108 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r 108 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
109 $(OS9RENAME) $@,CMDS/sierra AutoEx 109 $(OS9RENAME) $@,CMDS/sierra AutoEx
132 $(MERGE) $(KERNEL)>kernel 132 $(MERGE) $(KERNEL)>kernel
133 $(OS9GEN) $@ -b=os9boot -t=kernel 133 $(OS9GEN) $@ -b=os9boot -t=kernel
134 $(RM) os9boot kernel 134 $(RM) os9boot kernel
135 $(MAKDIR) $@,CMDS 135 $(MAKDIR) $@,CMDS
136 $(OS9COPY) $(CMDS) $@,CMDS 136 $(OS9COPY) $(CMDS) $@,CMDS
137 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 137 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
138 $(MERGE) $(BOOTCMDS)>shell 138 $(MERGE) $(BOOTCMDS)>shell
139 $(OS9COPY) shell $@,CMDS 139 $(OS9COPY) shell $@,CMDS
140 $(RM) shell 140 $(RM) shell
141 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r 141 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
142 $(OS9RENAME) $@,CMDS/sierra AutoEx 142 $(OS9RENAME) $@,CMDS/sierra AutoEx
155 $(MERGE) $(KERNEL_DW)>kernel 155 $(MERGE) $(KERNEL_DW)>kernel
156 $(OS9GEN) $@ -b=os9boot -t=kernel 156 $(OS9GEN) $@ -b=os9boot -t=kernel
157 $(RM) os9boot kernel 157 $(RM) os9boot kernel
158 $(MAKDIR) $@,CMDS 158 $(MAKDIR) $@,CMDS
159 $(OS9COPY) $(CMDS) $@,CMDS 159 $(OS9COPY) $(CMDS) $@,CMDS
160 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 160 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
161 $(MERGE) $(BOOTCMDS)>shell 161 $(MERGE) $(BOOTCMDS)>shell
162 $(OS9COPY) shell $@,CMDS 162 $(OS9COPY) shell $@,CMDS
163 $(RM) shell 163 $(RM) shell
164 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r 164 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
165 $(OS9RENAME) $@,CMDS/sierra AutoEx 165 $(OS9RENAME) $@,CMDS/sierra AutoEx
178 $(MERGE) $(KERNEL_DW_BECKER)>kernel 178 $(MERGE) $(KERNEL_DW_BECKER)>kernel
179 $(OS9GEN) $@ -b=os9boot -t=kernel 179 $(OS9GEN) $@ -b=os9boot -t=kernel
180 $(RM) os9boot kernel 180 $(RM) os9boot kernel
181 $(MAKDIR) $@,CMDS 181 $(MAKDIR) $@,CMDS
182 $(OS9COPY) $(CMDS) $@,CMDS 182 $(OS9COPY) $(CMDS) $@,CMDS
183 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) 183 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
184 $(MERGE) $(BOOTCMDS)>shell 184 $(MERGE) $(BOOTCMDS)>shell
185 $(OS9COPY) shell $@,CMDS 185 $(OS9COPY) shell $@,CMDS
186 $(RM) shell 186 $(RM) shell
187 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r 187 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
188 $(OS9RENAME) $@,CMDS/sierra AutoEx 188 $(OS9RENAME) $@,CMDS/sierra AutoEx