From 63007de376cdac84271bbf5969ebe3d68b01d3f4 Mon Sep 17 00:00:00 2001 From: acevest Date: Wed, 11 Oct 2023 23:48:27 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3make=20clean=E6=9C=89=E5=8F=AF?= =?utf8?q?=E8=83=BD=E5=88=A0=E9=99=A4=E4=B8=8D=E5=B9=B2=E5=87=80object?= =?utf8?q?=E6=96=87=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2779a38..1ef9436 100644 --- a/Makefile +++ b/Makefile @@ -61,11 +61,15 @@ ${KERNELBIN}: ${OBJS} c: rm -f $(KERNELBIN) -.PHONY: clean -clean: - rm -f $(OBJS) +.PHONY: clean $(SRC_DIRS) +clean: $(SRC_DIRS) rm -f $(KERNELBIN) $(SYSTEMMAP) +$(SRC_DIRS): + @echo "clean *.o files in $@" + @find $@ -name "*\.o" -delete + + .PHONY: install install: cp -p KERNEL.ELF /boot/ -- 2.44.0