From: Greg King Date: Wed, 17 Dec 2014 20:59:29 +0000 (-0500) Subject: Made the makefiles' clean target remove the object files from the source directory. X-Git-Tag: V2.15~27^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ad56b6abe94129d014f62eab5a51d6e3e61bb5d5;p=cc65 Made the makefiles' clean target remove the object files from the source directory. --- diff --git a/test/err/Makefile b/test/err/Makefile index 40ccfcb59..a6d590515 100644 --- a/test/err/Makefile +++ b/test/err/Makefile @@ -49,4 +49,4 @@ $(WORKDIR)/%.or.prg: %.c ! $(CL65) -Or $(CC65FLAGS) $< -o $@ clean: @$(RM) $(TESTS) - @$(RM) $(SOURCES:%.c=$(WORKDIR)/%.o) + @$(RM) $(SOURCES:.c=.o) diff --git a/test/misc/Makefile b/test/misc/Makefile index bb9fa404b..7af8c0cb1 100644 --- a/test/misc/Makefile +++ b/test/misc/Makefile @@ -59,7 +59,7 @@ $(WORKDIR)/sitest%prg: sitest.c clean: @$(RM) $(TESTS) - @$(RM) $(SOURCES:%.c=$(WORKDIR)/%.o) + @$(RM) $(SOURCES:.c=.o) @$(RM) $(SOURCES:%.c=$(WORKDIR)/%.out) diff --git a/test/ref/Makefile b/test/ref/Makefile index b752adc1d..39336aa52 100644 --- a/test/ref/Makefile +++ b/test/ref/Makefile @@ -86,7 +86,7 @@ $(WORKDIR)/%.or.prg: %.c $(WORKDIR)/%.ref clean: @$(RM) $(TESTS) - @$(RM) $(SOURCES:%.c=$(WORKDIR)/%.o) + @$(RM) $(SOURCES:.c=.o) @$(RM) $(SOURCES:%.c=$(WORKDIR)/%.out) @$(RM) $(SOURCES:%.c=$(WORKDIR)/%.ref) @$(RM) $(SOURCES:%.c=$(WORKDIR)/%.host) diff --git a/test/val/Makefile b/test/val/Makefile index 2e0aca278..c9afbbd86 100644 --- a/test/val/Makefile +++ b/test/val/Makefile @@ -67,4 +67,4 @@ $(WORKDIR)/%.or.prg: %.c clean: @$(RM) $(TESTS) - @$(RM) $(SOURCES:%.c=$(WORKDIR)/%.o) + @$(RM) $(SOURCES:.c=.o)