From e88c63fd753dd41d4f76129ab100dea5cb7e8205 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 7 May 2011 21:45:06 -0700 Subject: [PATCH] Clean up the clean, distclean makefile stuff --- Makefile | 7 +++++-- config-mingw.mk | 5 +++-- config-unix.mk | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 9886ac91..8138de04 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ test/echo.o: test/echo.c test/echo.h $(CC) $(CFLAGS) -c test/echo.c -o test/echo.o -.PHONY: clean distclean test benchmark +.PHONY: clean clean-platform distclean distclean-platform test benchmark test: test/run-tests @@ -49,5 +49,8 @@ test: test/run-tests bench: test/run-benchmarks test/run-benchmarks -clean: +clean: clean-platform + $(RM) -f *.o *.a test/run-tests$(E) test/run-benchmarks$(E) + +distclean: distclean-platform $(RM) -f *.o *.a test/run-tests$(E) test/run-benchmarks$(E) diff --git a/config-mingw.mk b/config-mingw.mk index 8104fd4d..8eab14eb 100644 --- a/config-mingw.mk +++ b/config-mingw.mk @@ -39,5 +39,6 @@ oio.a: oio-win.o oio-win.o: oio-win.c oio.h oio-win.h $(CC) $(CFLAGS) -c oio-win.c -o oio-win.o -distclean: - $(RM) -f *.o *.a +distclean-platform: +clean-platform: + ; diff --git a/config-unix.mk b/config-unix.mk index 1024ed44..107515be 100644 --- a/config-unix.mk +++ b/config-unix.mk @@ -42,6 +42,8 @@ ev/ev.o: ev/config.h ev/ev.c ev/config.h: cd ev && ./configure -distclean: - $(RM) -f *.o *.a +clean-platform: $(MAKE) -C ev clean + +distclean-platform: + $(MAKE) -C ev distclean