Repos / kernel.git / commitdiff
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 905c332)
raw | patch | inline | side by side (parent: 905c332)
| author | zhaoyanbai <zhaoyanbai@126.com> | |
| Wed, 11 Oct 2023 15:48:27 +0000 (23:48 +0800) | ||
| committer | zhaoyanbai <zhaoyanbai@126.com> | |
| Wed, 11 Oct 2023 15:48:27 +0000 (23:48 +0800) |
| Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
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/