Makefile: Remove make depend files by make distclean

Intermediate files of make depend like .ddc and .dds may remain
when make is interrupted. Remove them using make distclean.

Signed-off-by: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com>
This commit is contained in:
SPRESENSE
2026-02-16 17:12:20 +09:00
committed by Alin Jerpelea
parent 56112efbd3
commit 72b67832ea
35 changed files with 35 additions and 0 deletions

View File

@@ -282,6 +282,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -255,6 +255,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -140,6 +140,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -152,6 +152,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -138,6 +138,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -141,6 +141,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -181,6 +181,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -146,6 +146,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -254,6 +254,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -529,6 +529,7 @@ distclean:: clean
$(Q) if [ -e board/Makefile ]; then \
$(MAKE) -C board distclean ; \
fi
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HOSTSRCS:.c=.ddh))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)
$(call DELFILE, config.h)

View File

@@ -235,6 +235,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -194,6 +194,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_ASRC:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -224,6 +224,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -235,6 +235,7 @@ distclean:: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board distclean
endif
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(HEAD_CSRC:.c=.ddc) $(HEAD_ASRC:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -71,6 +71,7 @@ clean:
$(call CLEAN)
distclean: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -95,6 +95,7 @@ clean:
$(call CLEAN)
distclean: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -88,6 +88,7 @@ clean: clean_context
$(call CLEAN)
distclean: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) $(CXXSRCS:.cxx=.ddx))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -117,6 +117,7 @@ clean:
$(call CLEAN)
distclean: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -128,6 +128,7 @@ clean:
$(call CLEAN)
distclean:: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -108,6 +108,7 @@ clean:
$(call CLEAN)
distclean:: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -131,6 +131,7 @@ clean:
$(call CLEAN)
distclean: clean clean_context
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -225,6 +225,7 @@ distclean:: clean
$(Q) $(MAKE) -C zoneinfo distclean BIN=$(BIN)
$(Q) $(MAKE) -C elf distclean
$(call DELFILE, exec_symtab.c)
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, .depend)
$(call DELDIR, bin)
$(call DELDIR, kbin)

View File

@@ -120,6 +120,7 @@ clean:
$(call CLEAN)
distclean: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)
$(call DELFILE, .tzunpack)

View File

@@ -78,6 +78,7 @@ clean:
$(call CLEAN)
distclean: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -104,6 +104,7 @@ clean:
distclean:: clean
$(call DELDIR, bin)
$(call DELDIR, kbin)
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, .depend)
-include bin$(DELIM)Make.dep

View File

@@ -267,6 +267,7 @@ clean:
distclean: clean
$(call DELDIR, bin)
$(call DELDIR, kbin)
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, .depend)
$(Q) $(MAKE) -C nxfonts -f Makefile.sources distclean EXTRAFLAGS="$(EXTRAFLAGS)"

View File

@@ -96,6 +96,7 @@ clean:
$(call CLEAN)
distclean:: clean
$(call DELFILE, $(CXXSRCS:.cxx=.ddx) $(CPPSRCS:.cpp=.ddp))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -128,6 +128,7 @@ clean:
distclean:: clean
$(call DELDIR, bin)
$(call DELDIR, kbin)
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, .depend)
-include bin$(DELIM)Make.dep

View File

@@ -105,6 +105,7 @@ clean:
$(call CLEAN)
distclean: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -65,6 +65,7 @@ clean:
$(call CLEAN)
distclean:: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -60,6 +60,7 @@ clean:
$(call CLEAN)
distclean: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)
$(call DELFILE, *.c)

View File

@@ -82,6 +82,7 @@ clean:
$(call CLEAN)
distclean: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -120,6 +120,7 @@ endif
distclean: clean
$(call DELFILE, .context)
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)
$(call DELFILE, proxies$(DELIM)*.c)

View File

@@ -58,6 +58,7 @@ clean:
$(call CLEAN)
distclean: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)

View File

@@ -63,6 +63,7 @@ clean:
$(call CLEAN)
distclean: clean
$(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)