From 518e87bd3aeda9115ae2f67cedcf9e5456859cac Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Fri, 26 Jul 2013 15:41:10 +0100 Subject: [PATCH] Global C makefiles now remove the compiled object It now recursively calls make clean in the directories. Fixes #14. --- Exercises/Makefile | 3 +-- Solutions/Makefile | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Exercises/Makefile b/Exercises/Makefile index 45c41d5..17cddf5 100644 --- a/Exercises/Makefile +++ b/Exercises/Makefile @@ -14,5 +14,4 @@ $(CEXES): .PHONY : clean clean: - rm -f $(CEXES) - rm -rf *.o + for e in $(CEXES); do $(MAKE) -C `dirname $$e` clean; done diff --git a/Solutions/Makefile b/Solutions/Makefile index bab58d6..7b851dd 100644 --- a/Solutions/Makefile +++ b/Solutions/Makefile @@ -15,5 +15,4 @@ $(CEXES): .PHONY : clean clean: - rm -f $(CEXES) - rm -rf *.o + for e in $(CEXES); do $(MAKE) -C `dirname $$e` clean; done