From 241875a742132e77bc499848d2a1eb720ffc0bf8 Mon Sep 17 00:00:00 2001 From: Andrew Bird Date: Sun, 8 Dec 2019 13:49:53 +0000 Subject: [PATCH] Make: Allow clean and clobber to work with gcc Currently the sed trickery for gcc is only setup on the all target, but if we want to do `make COMPILER=gcc clean all` the clean will fail. Setup and remove the GNUmakefiles for each main target. --- makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/makefile b/makefile index ca97ede..6b72daf 100644 --- a/makefile +++ b/makefile @@ -115,16 +115,20 @@ all: cd boot && $(MAKE) production cd sys && $(MAKE) production cd kernel && $(MAKE) production + $(MAKEREMOVE) clean: + $(MAKEADJUST) cd utils && $(MAKE) clean cd lib && $(MAKE) clean cd drivers && $(MAKE) clean cd boot && $(MAKE) clean cd sys && $(MAKE) clean cd kernel && $(MAKE) clean + $(MAKEREMOVE) clobber: + $(MAKEADJUST) cd utils && $(MAKE) clobber cd lib && $(MAKE) clobber cd drivers && $(MAKE) clobber