diff --git a/arch/arm/src/Makefile b/arch/arm/src/Makefile index fc0670f63b7..529583a2371 100644 --- a/arch/arm/src/Makefile +++ b/arch/arm/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs ifeq ($(CONFIG_ARCH_ARMV7A),y) # ARMv7-A ARCH_SUBDIR = armv7-a @@ -193,8 +193,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board clean @@ -206,7 +204,7 @@ ifneq ($(EXTRADELFILE),) endif $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif diff --git a/arch/arm/src/nrf52/Make.defs b/arch/arm/src/nrf52/Make.defs index b5091bc5c21..782e29c178b 100644 --- a/arch/arm/src/nrf52/Make.defs +++ b/arch/arm/src/nrf52/Make.defs @@ -172,7 +172,7 @@ chip/$(NRFXLIB_UNPACK): $(NRFXLIB_TGZ) context:: chip/$(NRFXLIB_UNPACK) -clean_context:: +distclean:: $(call DELFILE, chip/$(NRFXLIB_TGZ)) $(call DELDIR, chip/$(NRFXLIB_UNPACK)) diff --git a/arch/avr/src/Makefile b/arch/avr/src/Makefile index e31bd372d57..d069d6f68ce 100644 --- a/arch/avr/src/Makefile +++ b/arch/avr/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs ifeq ($(CONFIG_ARCH_FAMILY_AVR32),y) ARCH_SUBDIR = avr32 @@ -140,8 +140,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board clean @@ -149,7 +147,7 @@ endif $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif diff --git a/arch/hc/src/Makefile b/arch/hc/src/Makefile index 3728dabd984..3b19b67be5c 100644 --- a/arch/hc/src/Makefile +++ b/arch/hc/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs ifeq ($(CONFIG_ARCH_HC12),y) ARCH_SUBDIR = hc12 @@ -155,8 +155,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board clean @@ -164,7 +162,7 @@ endif $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif diff --git a/arch/mips/src/Makefile b/arch/mips/src/Makefile index 9c8cc76d28b..3ce0a39ae1d 100644 --- a/arch/mips/src/Makefile +++ b/arch/mips/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs ifeq ($(CONFIG_ARCH_MIPS),y) ARCH_SUBDIR = mips32 @@ -138,8 +138,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board clean @@ -147,7 +145,7 @@ endif $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif diff --git a/arch/misoc/src/Makefile b/arch/misoc/src/Makefile index 749c578d72c..6ddce1c2470 100644 --- a/arch/misoc/src/Makefile +++ b/arch/misoc/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs ifeq ($(CONFIG_ARCH_CHIP_LM32),y) ARCH_SUBDIR = lm32 @@ -141,8 +141,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board clean @@ -150,7 +148,7 @@ endif $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif diff --git a/arch/or1k/src/Makefile b/arch/or1k/src/Makefile index e916b0a0048..a5b13d42082 100644 --- a/arch/or1k/src/Makefile +++ b/arch/or1k/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs ifeq ($(CONFIG_ARCH_MOR1KX),y) # OpenRISC mor1kx ARCH_SUBDIR = mor1kx @@ -181,8 +181,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board clean @@ -191,7 +189,7 @@ endif $(call DELFILE, $(BIN)) $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif diff --git a/arch/renesas/src/Makefile b/arch/renesas/src/Makefile index 4d03c284453..55b79844d81 100644 --- a/arch/renesas/src/Makefile +++ b/arch/renesas/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs ARCH_SRCDIR = $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src @@ -149,8 +149,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board clean @@ -158,7 +156,7 @@ endif $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif diff --git a/arch/risc-v/src/Makefile b/arch/risc-v/src/Makefile index 1a43406ba60..efcf4804280 100644 --- a/arch/risc-v/src/Makefile +++ b/arch/risc-v/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs ifeq ($(CONFIG_ARCH_RV32I),y) # Base Integer support ARCH_SUBDIR = rv32i @@ -182,8 +182,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board clean @@ -193,7 +191,7 @@ endif $(call DELFILE, $(HEAD_OBJ)) $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif diff --git a/arch/risc-v/src/bl602/Make.defs b/arch/risc-v/src/bl602/Make.defs index 99558179b38..316cb85b15e 100644 --- a/arch/risc-v/src/bl602/Make.defs +++ b/arch/risc-v/src/bl602/Make.defs @@ -100,7 +100,7 @@ chip/$(WIRELESS_DRV_UNPACK): $(WIRELESS_DRV_ZIP) context:: chip/$(WIRELESS_DRV_UNPACK) -clean_context:: +distclean:: $(call DELFILE, chip/$(WIRELESS_DRV_ZIP)) $(call DELDIR, chip/$(WIRELESS_DRV_UNPACK)) diff --git a/arch/risc-v/src/esp32c3/Make.defs b/arch/risc-v/src/esp32c3/Make.defs index 40ec5877169..d86ce14e6d6 100644 --- a/arch/risc-v/src/esp32c3/Make.defs +++ b/arch/risc-v/src/esp32c3/Make.defs @@ -195,7 +195,7 @@ chip/$(WIRELESS_DRV_UNPACK): $(WIRELESS_DRV_ZIP) context:: chip/$(WIRELESS_DRV_UNPACK) -clean_context:: +distclean:: $(call DELFILE, chip/$(WIRELESS_DRV_ZIP)) $(call DELDIR, chip/$(WIRELESS_DRV_UNPACK)) diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index 29b5380fedc..0360cae6131 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -339,8 +339,6 @@ depend: .depend context:: -clean_context:: - clean: $(Q) if [ -e board/Makefile ]; then \ $(MAKE) -C board clean ; \ @@ -351,7 +349,7 @@ clean: $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean $(Q) if [ -e board/Makefile ]; then \ $(MAKE) -C board distclean ; \ fi diff --git a/arch/x86/src/Makefile b/arch/x86/src/Makefile index c95f24bd635..70f93bfa43f 100644 --- a/arch/x86/src/Makefile +++ b/arch/x86/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs ifeq ($(CONFIG_ARCH_I486),y) ARCH_SUBDIR = i486 @@ -153,8 +153,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board clean @@ -162,7 +160,7 @@ endif $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif diff --git a/arch/x86_64/src/Makefile b/arch/x86_64/src/Makefile index db2050ed5fb..eba49ea7068 100644 --- a/arch/x86_64/src/Makefile +++ b/arch/x86_64/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs ifeq ($(CONFIG_ARCH_INTEL64),y) ARCH_SUBDIR = intel64 @@ -163,8 +163,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board clean @@ -172,7 +170,7 @@ endif $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif diff --git a/arch/xtensa/src/Makefile b/arch/xtensa/src/Makefile index b8e950e9204..7d4021a5aa3 100644 --- a/arch/xtensa/src/Makefile +++ b/arch/xtensa/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs ifeq ($(CONFIG_ARCH_FAMILY_LX6),y) ARCH_SUBDIR = lx6 @@ -143,8 +143,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board clean @@ -152,7 +150,7 @@ endif $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board distclean endif diff --git a/arch/xtensa/src/esp32/Make.defs b/arch/xtensa/src/esp32/Make.defs index 268deae307d..dca438ad605 100644 --- a/arch/xtensa/src/esp32/Make.defs +++ b/arch/xtensa/src/esp32/Make.defs @@ -223,7 +223,7 @@ chip/$(WIRELESS_DRV_UNPACK): $(WIRELESS_DRV_ZIP) context:: chip/$(WIRELESS_DRV_UNPACK) -clean_context:: +distclean:: $(call DELFILE, chip/$(WIRELESS_DRV_ZIP)) $(call DELDIR, chip/$(WIRELESS_DRV_UNPACK)) diff --git a/arch/z16/src/Makefile b/arch/z16/src/Makefile index b41ffe4c50e..106c3c2cfb0 100644 --- a/arch/z16/src/Makefile +++ b/arch/z16/src/Makefile @@ -19,7 +19,7 @@ ############################################################################ include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs COMPILER = ${shell basename "$(CC)"} ARCHSRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src @@ -140,8 +140,6 @@ depend: .depend context:: -clean_context:: - clean: ifeq ($(CONFIG_WINDOWS_NATIVE),y) $(Q) if exist board$(DELIM)Makefile ( $(MAKE) -C board clean ) @@ -159,7 +157,7 @@ endif $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean ifeq ($(CONFIG_WINDOWS_NATIVE),y) $(Q) if exist board$(DELIM)Makefile ( $(MAKE) -C board distclean ) else diff --git a/arch/z80/src/Makefile b/arch/z80/src/Makefile index 270233b3c9a..b99edba0e25 100644 --- a/arch/z80/src/Makefile +++ b/arch/z80/src/Makefile @@ -21,7 +21,7 @@ # Makefile fragments include $(TOPDIR)/Make.defs --include chip/Make.defs +include chip/Make.defs # Compiler-Dependent Make: SDCC, Clang, or ZiLOG ZDS-II diff --git a/arch/z80/src/Makefile.clang b/arch/z80/src/Makefile.clang index 93d8d918890..c6610f2aa42 100644 --- a/arch/z80/src/Makefile.clang +++ b/arch/z80/src/Makefile.clang @@ -115,8 +115,6 @@ depend: .depend context:: -clean_context:: - clean: $(Q) if [ -e board$(DELIM)Makefile ]; then \ $(MAKE) -C board clean ; \ @@ -125,7 +123,7 @@ clean: $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean $(Q) if [ -e board$(DELIM)Makefile ]; then \ $(MAKE) -C board distclean ; \ fi diff --git a/arch/z80/src/Makefile.sdccl b/arch/z80/src/Makefile.sdccl index 325c6413929..9b53baa1488 100644 --- a/arch/z80/src/Makefile.sdccl +++ b/arch/z80/src/Makefile.sdccl @@ -203,8 +203,6 @@ depend: .depend context:: -clean_context:: - clean: $(Q) if [ -e board/Makefile ]; then \ $(MAKE) -C board clean ; \ @@ -214,7 +212,7 @@ clean: $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean $(Q) if [ -e board/Makefile ]; then \ $(MAKE) -C board distclean ; \ fi diff --git a/arch/z80/src/Makefile.sdccw b/arch/z80/src/Makefile.sdccw index 1643c884cab..06a6a965c55 100644 --- a/arch/z80/src/Makefile.sdccw +++ b/arch/z80/src/Makefile.sdccw @@ -195,8 +195,6 @@ depend: .depend context:: -clean_context:: - clean: $(Q) if exist board\Makefile ( $(MAKE) -C board clean ) $(call DELFILE, asm_mem.h) @@ -204,7 +202,7 @@ clean: $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean $(Q) if exist board\Makefile ( $(MAKE) -C board distclean ) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/arch/z80/src/Makefile.zdsiil b/arch/z80/src/Makefile.zdsiil index 3854c9f5a7a..26dde2c7a46 100644 --- a/arch/z80/src/Makefile.zdsiil +++ b/arch/z80/src/Makefile.zdsiil @@ -144,8 +144,6 @@ depend: .depend context:: -clean_context:: - clean: $(Q) if [ -e board$(DELIM)Makefile ]; then \ $(MAKE) -C board clean ; \ @@ -157,7 +155,7 @@ clean: $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean $(Q) if [ -e board$(DELIM)Makefile ]; then \ $(MAKE) -C board distclean ; \ fi diff --git a/arch/z80/src/Makefile.zdsiiw b/arch/z80/src/Makefile.zdsiiw index 42019d6b7c8..03a35ed17da 100644 --- a/arch/z80/src/Makefile.zdsiiw +++ b/arch/z80/src/Makefile.zdsiiw @@ -126,8 +126,6 @@ depend: .depend context:: -clean_context:: - clean: $(Q) if exist board$(DELIM)Makefile ( $(MAKE) -C board clean ) $(call DELFILE, nuttx.linkcmd) @@ -137,7 +135,7 @@ clean: $(call DELFILE, libarch$(LIBEXT)) $(call CLEAN) -distclean: clean +distclean:: clean $(Q) if exist board$(DELIM)Makefile ( $(MAKE) -C board distclean ) $(call DELFILE, Make.dep) $(call DELFILE, .depend) diff --git a/tools/Directories.mk b/tools/Directories.mk index 51c95dbd3a3..8eb05847256 100644 --- a/tools/Directories.mk +++ b/tools/Directories.mk @@ -37,7 +37,7 @@ # CONFIG_BUILD_KERNEL is selected, then applications are not build at all. CLEANDIRS := -CCLEANDIRS := boards $(APPDIR) graphics $(ARCH_SRC) +CCLEANDIRS := boards $(APPDIR) graphics KERNDEPDIRS := USERDEPDIRS :=