mirror of https://github.com/FDOS/kernel.git
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:
parent
7cbd272ca5
commit
241875a742
4
makefile
4
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
|
||||
|
|
Loading…
Reference in New Issue