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.
This commit is contained in:
Andrew Bird 2019-12-08 13:49:53 +00:00 committed by Kenneth J Davis
parent 7cbd272ca5
commit 241875a742
1 changed files with 4 additions and 0 deletions

View File

@ -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