# HG changeset patch # User Tormod Volden # Date 1587249756 -7200 # Node ID a7b26df77dcbd2d211d628ca2aef07f0eb560759 # Parent cbb116c092defd917618f9389252813cb33f2aec level3/makefile: Avoid copying same files twice to disk image diff -r cbb116c092de -r a7b26df77dcb level3/coco3/makefile --- a/level3/coco3/makefile Sun Apr 19 00:05:13 2020 +0200 +++ b/level3/coco3/makefile Sun Apr 19 00:42:36 2020 +0200 @@ -214,10 +214,8 @@ $(MAKDIR) $@,DEFS $(OS9COPY) modules/$(SYSGO) $@,sysgo $(OS9ATTR_EXEC) $@,sysgo - $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS - $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) - $(CD) cmds; $(OS9COPY) $(CMDS_D2) ../$@,CMDS - $(OS9ATTR_EXEC) $(foreach file,$(CMDS_D2),$@,CMDS/$(file)) + $(CD) cmds; $(OS9COPY) $(sort $(CMDS) $(CMDS_D2)) ../$@,CMDS + $(OS9ATTR_EXEC) $(foreach file,$(sort $(CMDS) $(CMDS_D2)),$@,CMDS/$(file)) $(CD) sys; $(OS9COPY) $(SYSBIN) ../$@,SYS $(OS9ATTR_TEXT) $(foreach file,$(SYSBIN),$@,SYS/$(file)) $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS @@ -269,10 +267,8 @@ $(MAKDIR) $@,DEFS $(OS9COPY) modules/$(SYSGO) $@,sysgo $(OS9ATTR_EXEC) $@,sysgo - $(CD) cmds; $(OS9COPY) $(CMDS) ../$@,CMDS - $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) - $(CD) cmds; $(OS9COPY) $(CMDS_D2) ../$@,CMDS - $(OS9ATTR_EXEC) $(foreach file,$(CMDS_D2),$@,CMDS/$(file)) + $(CD) cmds; $(OS9COPY) $(sort $(CMDS) $(CMDS_D2)) ../$@,CMDS + $(OS9ATTR_EXEC) $(foreach file,$(sort $(CMDS) $(CMDS_D2)),$@,CMDS/$(file)) $(CD) sys; $(OS9COPY) $(SYSBIN) ../$@,SYS $(OS9ATTR_TEXT) $(foreach file,$(SYSBIN),$@,SYS/$(file)) $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS