Mercurial > hg > Members > kono > nitros9-code
comparison 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 |
comparison
equal
deleted
inserted
replaced
2872:dbc6d0647ac4 | 2873:46c80d4b0de1 |
---|---|
137 $(OS9FORMAT_SS80) -q -dr $@ -n"NitrOS-9/6809 Dragon Alpha Level 1 Disk 1" | 137 $(OS9FORMAT_SS80) -q -dr $@ -n"NitrOS-9/6809 Dragon Alpha Level 1 Disk 1" |
138 $(OS9GEN) $@ -d -b=$(BOOTFILE_SS80) -t=$(KERNELFILE) | 138 $(OS9GEN) $@ -d -b=$(BOOTFILE_SS80) -t=$(KERNELFILE) |
139 $(MAKDIR) $@,CMDS | 139 $(MAKDIR) $@,CMDS |
140 $(MAKDIR) $@,SYS | 140 $(MAKDIR) $@,SYS |
141 $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS | 141 $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS |
142 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | 142 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
143 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell | 143 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell |
144 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | 144 $(CD) sys; $(CPL) $(SYS) ../$@,SYS |
145 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) | 145 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file)) |
146 $(MAKDIR) $@,DEFS | 146 $(MAKDIR) $@,DEFS |
147 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | 147 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS |
148 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | 148 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) |
149 $(CPL) $(ROOTFILES) $@,. | 149 $(CPL) $(ROOTFILES) $@,. |
150 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | 150 $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file)) |
151 $(RM) $(LDSK360K_1) | 151 $(RM) $(LDSK360K_1) |
152 $(SOFTLINK) $@ $(LDSK360K_1) | 152 $(SOFTLINK) $@ $(LDSK360K_1) |
153 | 153 |
154 $(DSK360K_2): | 154 $(DSK360K_2): |
155 $(RM) $@ | 155 $(RM) $@ |
156 $(OS9FORMAT_SS80) -q -dr $@ -n"NitrOS-9/6809 Dragon Alpha Level 1 Disk 2" | 156 $(OS9FORMAT_SS80) -q -dr $@ -n"NitrOS-9/6809 Dragon Alpha Level 1 Disk 2" |
157 $(MAKDIR) $@,NITROS9 | 157 $(MAKDIR) $@,NITROS9 |
158 $(MAKDIR) $@,NITROS9/6809L1 | 158 $(MAKDIR) $@,NITROS9/6809L1 |
159 $(MAKDIR) $@,NITROS9/6809L1/CMDS | 159 $(MAKDIR) $@,NITROS9/6809L1/CMDS |
160 $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS | 160 $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS |
161 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) | 161 $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/6809L1/CMDS/$(file)) |
162 $(OS9RENAME) $@,NITROS9/6809L1/CMDS//$(WHICHSHELL) shell | 162 $(OS9RENAME) $@,NITROS9/6809L1/CMDS//$(WHICHSHELL) shell |
163 $(MAKDIR) $@,NITROS9/6809L1/MODULES | 163 $(MAKDIR) $@,NITROS9/6809L1/MODULES |
164 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | 164 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK |
165 $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK | 165 $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK |
166 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) | 166 $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file)) |
167 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL | 167 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL |
168 $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL | 168 $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL |
169 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) | 169 $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/6809L1/MODULES/KERNEL/$(file)) |
170 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS | 170 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS |
171 $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS | 171 $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS |
172 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) | 172 $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/6809L1/MODULES/SYSMODS/$(file)) |
173 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS | 173 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS |
174 $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS | 174 $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS |
175 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) | 175 $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/6809L1/MODULES/CLOCKS/$(file)) |
176 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF | 176 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF |
177 $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF | 177 $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF |
178 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) | 178 $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/6809L1/MODULES/RBF/$(file)) |
179 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF | 179 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF |
180 $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF | 180 $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF |
181 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) | 181 $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/6809L1/MODULES/SCF/$(file)) |
182 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE | 182 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE |
183 $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE | 183 $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE |
184 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) | 184 $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/6809L1/MODULES/PIPE/$(file)) |
185 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS | 185 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS |
186 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | 186 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS |
187 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS | 187 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS |
188 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | 188 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS |
189 $(RM) $(LDSK360K_2) | 189 $(RM) $(LDSK360K_2) |
195 $(OS9GEN) $@ -d -b=$(BOOTFILE_DS80) -t=$(KERNELFILE) | 195 $(OS9GEN) $@ -d -b=$(BOOTFILE_DS80) -t=$(KERNELFILE) |
196 $(MAKDIR) $@,CMDS | 196 $(MAKDIR) $@,CMDS |
197 $(MAKDIR) $@,SYS | 197 $(MAKDIR) $@,SYS |
198 $(MAKDIR) $@,DEFS | 198 $(MAKDIR) $@,DEFS |
199 $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS | 199 $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS |
200 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | 200 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
201 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell | 201 $(OS9RENAME) $@,CMDS/$(WHICHSHELL) shell |
202 $(CD) sys; $(CPL) $(SYS) ../$@,SYS | 202 $(CD) sys; $(CPL) $(SYS) ../$@,SYS |
203 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) | 203 $(OS9ATTR_TEXT) $(foreach file,$(SYS),$@,SYS/$(file)) |
204 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | 204 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS |
205 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | 205 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) |
206 $(CPL) $(ROOTFILES) $@,. | 206 $(CPL) $(ROOTFILES) $@,. |
207 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | 207 $(OS9ATTR_TEXT) $(foreach file,$(ROOTFILES),$@,$(file)) |
208 $(MAKDIR) $@,NITROS9 | 208 $(MAKDIR) $@,NITROS9 |
209 $(MAKDIR) $@,NITROS9/6809L1 | 209 $(MAKDIR) $@,NITROS9/6809L1 |
210 $(MAKDIR) $@,NITROS9/6809L1/CMDS | 210 $(MAKDIR) $@,NITROS9/6809L1/CMDS |
211 $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS | 211 $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/6809L1/CMDS |
212 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/CMDS/$(file);) | 212 $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/6809L1/CMDS/$(file)) |
213 $(OS9RENAME) $@,NITROS9/6809L1/CMDS/$(WHICHSHELL) shell | 213 $(OS9RENAME) $@,NITROS9/6809L1/CMDS/$(WHICHSHELL) shell |
214 $(MAKDIR) $@,NITROS9/6809L1/MODULES | 214 $(MAKDIR) $@,NITROS9/6809L1/MODULES |
215 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK | 215 $(MAKDIR) $@,NITROS9/6809L1/MODULES/BOOTTRACK |
216 $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK | 216 $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/6809L1/MODULES/BOOTTRACK |
217 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file);) | 217 $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/6809L1/MODULES/BOOTTRACK/$(file)) |
218 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL | 218 $(MAKDIR) $@,NITROS9/6809L1/MODULES/KERNEL |
219 $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL | 219 $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/6809L1/MODULES/KERNEL |
220 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/KERNEL/$(file);) | 220 $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/6809L1/MODULES/KERNEL/$(file)) |
221 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS | 221 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SYSMODS |
222 $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS | 222 $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/6809L1/MODULES/SYSMODS |
223 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SYSMODS/$(file);) | 223 $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/6809L1/MODULES/SYSMODS/$(file)) |
224 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS | 224 $(MAKDIR) $@,NITROS9/6809L1/MODULES/CLOCKS |
225 $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS | 225 $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/6809L1/MODULES/CLOCKS |
226 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/CLOCKS/$(file);) | 226 $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/6809L1/MODULES/CLOCKS/$(file)) |
227 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF | 227 $(MAKDIR) $@,NITROS9/6809L1/MODULES/RBF |
228 $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF | 228 $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/6809L1/MODULES/RBF |
229 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/RBF/$(file);) | 229 $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/6809L1/MODULES/RBF/$(file)) |
230 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF | 230 $(MAKDIR) $@,NITROS9/6809L1/MODULES/SCF |
231 $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF | 231 $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/6809L1/MODULES/SCF |
232 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/SCF/$(file);) | 232 $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/6809L1/MODULES/SCF/$(file)) |
233 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE | 233 $(MAKDIR) $@,NITROS9/6809L1/MODULES/PIPE |
234 $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE | 234 $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/6809L1/MODULES/PIPE |
235 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L1/MODULES/PIPE/$(file);) | 235 $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/6809L1/MODULES/PIPE/$(file)) |
236 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS | 236 $(MAKDIR) $@,NITROS9/6809L1/BOOTLISTS |
237 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS | 237 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L1/BOOTLISTS |
238 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS | 238 $(MAKDIR) $@,NITROS9/6809L1/SCRIPTS |
239 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS | 239 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L1/SCRIPTS |
240 $(RM) $(LDSK720K) | 240 $(RM) $(LDSK720K) |