libbuitlin: distclean should delete all files

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
wangmingrong1 2024-10-28 19:59:39 +08:00 committed by Xiang Xiao
parent 583ff3b962
commit 20e33ed84a
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,8 @@ CPPOBJS = $(addprefix $(BINDIR)$(DELIM), $(CPPSRCS:.cpp=$(OBJEXT)))
SRCS = $(ASRCS) $(CSRCS) $(CXXSRCS) $(CPPSRCS) SRCS = $(ASRCS) $(CSRCS) $(CXXSRCS) $(CPPSRCS)
OBJS = $(AOBJS) $(COBJS) $(CXXOBJS) $(CPPOBJS) OBJS = $(AOBJS) $(COBJS) $(CXXOBJS) $(CPPOBJS)
BUILTIN_CLEANDIR = $(foreach dir,$(LIBBUILTIN),$(dir)/$(dir))
all: $(OBJS) all: $(OBJS)
$(call ARCHIVE, $(BIN), $(OBJS)) $(call ARCHIVE, $(BIN), $(OBJS))
@ -81,3 +83,4 @@ distclean: clean
$(Q) $(MAKE) -C bin distclean $(Q) $(MAKE) -C bin distclean
$(Q) $(MAKE) -C kbin distclean $(Q) $(MAKE) -C kbin distclean
$(call DELFILE, .depend) $(call DELFILE, .depend)
$(call DELDIR, $(BUILTIN_CLEANDIR))