]> git.sur5r.net Git - cc65/blobdiff - test/ref/Makefile
Ignore return values only with CMD.EXE.
[cc65] / test / ref / Makefile
index 14d78c37cb87dffe1b35e5ef0172f32ad6201caf..83b81f9cca1d52ba8e3dabff33e0d8971d9f8afe 100644 (file)
@@ -7,9 +7,11 @@ ifneq ($(shell echo),)
 endif
 
 ifdef CMD_EXE
+  M := -
   S := $(subst /,\,/)
   DEL = del /f $(subst /,\,$1)
 else
+  M :=
   S := /
   DEL = $(RM) $1
 endif
@@ -89,8 +91,8 @@ $(WORKDIR)/%.or.prg: %.c $(WORKDIR)/%.ref
        $(DIFF) $(WORKDIR)/$*.out $(WORKDIR)/$*.ref
 
 clean:
-       -@$(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))
+       $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))