CMD.EXE considers file deletion commands not able to delete anything as there's nothing to delete as failed. Of course we don't want to bail out of the Makefile because of missing files to delete. Therefore we ignore the return values with '-'. This change limits this workaround to CMD.EXE.
endif
ifdef CMD_EXE
- M := -
EXE := .exe
- DEL = del /f $(subst /,\,$1)
+ DEL = -del /f $(subst /,\,$1)
MKDIR = mkdir $(subst /,\,$1)
- RMDIR = rmdir /s /q $(subst /,\,$1)
+ RMDIR = -rmdir /s /q $(subst /,\,$1)
else
- M :=
EXE :=
DEL = $(RM) $1
MKDIR = mkdir $1
@$(MAKE) -C misc clean
clean: mostly-clean
- $M@$(call DEL,$(WORKDIR)/bdiff$(EXE))
- $M@$(call RMDIR,$(WORKDIR))
+ @$(call DEL,$(WORKDIR)/bdiff$(EXE))
+ @$(call RMDIR,$(WORKDIR))
endif
ifdef CMD_EXE
- M := -
NOT := - # Hack
- DEL = del /f $(subst /,\,$1)
+ DEL = -del /f $(subst /,\,$1)
else
- M :=
NOT := !
DEL = $(RM) $1
endif
$(NOT) $(CL65) -Or $(CC65FLAGS) $< -o $@
clean:
- $M@$(call DEL,$(TESTS))
- $M@$(call DEL,$(SOURCES:.c=.o))
+ @$(call DEL,$(TESTS))
+ @$(call DEL,$(SOURCES:.c=.o))
endif
ifdef CMD_EXE
- M := -
S := $(subst /,\,/)
NOT := - # Hack
- DEL = del /f $(subst /,\,$1)
+ DEL = -del /f $(subst /,\,$1)
else
- M :=
S := /
NOT := !
DEL = $(RM) $1
-$(SIM65) $(SIM65FLAGS) $@
clean:
- $M@$(call DEL,$(TESTS))
- $M@$(call DEL,$(SOURCES:.c=.o))
- $M@$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.out))
+ @$(call DEL,$(TESTS))
+ @$(call DEL,$(SOURCES:.c=.o))
+ @$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.out))
endif
ifdef CMD_EXE
- M := -
S := $(subst /,\,/)
- DEL = del /f $(subst /,\,$1)
+ DEL = -del /f $(subst /,\,$1)
else
- M :=
S := /
DEL = $(RM) $1
endif
$(DIFF) $(WORKDIR)/$*.out $(WORKDIR)/$*.ref
clean:
- $M@$(call DEL,$(TESTS))
- $M@$(call DEL,$(SOURCES:.c=.o))
- $M@$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.out))
- $M@$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.ref))
- $M@$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.host))
+ @$(call DEL,$(TESTS))
+ @$(call DEL,$(SOURCES:.c=.o))
+ @$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.out))
+ @$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.ref))
+ @$(call DEL,$(SOURCES:%.c=$(WORKDIR)/%.host))
endif
ifdef CMD_EXE
- M := -
- DEL = del /f $(subst /,\,$1)
+ DEL = -del /f $(subst /,\,$1)
else
- M :=
DEL = $(RM) $1
endif
$(SIM65) $(SIM65FLAGS) $@
clean:
- $M@$(call DEL,$(TESTS))
- $M@$(call DEL,$(SOURCES:.c=.o))
+ @$(call DEL,$(TESTS))
+ @$(call DEL,$(SOURCES:.c=.o))