This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 20e33ed84afcb018eb28bde14f26a1ba2d5aefa3
Author: wangmingrong1 <[email protected]>
AuthorDate: Mon Oct 28 19:59:39 2024 +0800

    libbuitlin: distclean should delete all files
    
    Signed-off-by: wangmingrong1 <[email protected]>
---
 libs/libbuiltin/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libs/libbuiltin/Makefile b/libs/libbuiltin/Makefile
index 7d1ca2f61e..d003471bc4 100644
--- a/libs/libbuiltin/Makefile
+++ b/libs/libbuiltin/Makefile
@@ -38,6 +38,8 @@ CPPOBJS = $(addprefix $(BINDIR)$(DELIM), 
$(CPPSRCS:.cpp=$(OBJEXT)))
 SRCS = $(ASRCS) $(CSRCS) $(CXXSRCS) $(CPPSRCS)
 OBJS = $(AOBJS) $(COBJS) $(CXXOBJS) $(CPPOBJS)
 
+BUILTIN_CLEANDIR = $(foreach dir,$(LIBBUILTIN),$(dir)/$(dir))
+
 all: $(OBJS)
        $(call ARCHIVE, $(BIN), $(OBJS))
 
@@ -81,3 +83,4 @@ distclean: clean
        $(Q) $(MAKE) -C bin  distclean
        $(Q) $(MAKE) -C kbin distclean
        $(call DELFILE, .depend)
+       $(call DELDIR, $(BUILTIN_CLEANDIR))
\ No newline at end of file

Reply via email to