From b6e2a997c170438b93da83582bcbc32d68699d88 Mon Sep 17 00:00:00 2001 From: AndreiGrozav Date: Thu, 18 Jan 2024 16:34:17 +0200 Subject: [PATCH] scripts:project_xilinx.mk: Fix make clean-all target Signed-off-by: AndreiGrozav --- projects/scripts/project-xilinx.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/scripts/project-xilinx.mk b/projects/scripts/project-xilinx.mk index 95e2c2340..45f15c373 100644 --- a/projects/scripts/project-xilinx.mk +++ b/projects/scripts/project-xilinx.mk @@ -89,9 +89,11 @@ clean: $(HL)$(PROJECT_NAME)$(NC) project) -rm -Rf ${DIR_NAME} -clean-all: TARGET:=clean -clean-all: clean $(M_DEPS) +clean-all: clean @rm -Rf $(CLEAN_DIRS) + @for lib in $(LIB_DEPS); do \ + $(MAKE) -C $(HDL_LIBRARY_PATH)$${lib} clean; \ + done MODE ?= "default"