From b2d7135caada433a63f0eba6804fd0170183bcb2 Mon Sep 17 00:00:00 2001 From: Giuseppe Carboni <giuseppecarboni89@live.com> Date: Tue, 22 Apr 2025 00:03:41 +0000 Subject: [PATCH] Fixed issue with git clean removing the SlaLibrary symlink --- SystemMake/Makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/SystemMake/Makefile b/SystemMake/Makefile index b1100d602..638565d27 100644 --- a/SystemMake/Makefile +++ b/SystemMake/Makefile @@ -230,17 +230,13 @@ all: $(MAKE) build-$${i}; \ done +# Clean target, calls clean_dist for each target inside the TARGETS variable. Can also be called with -j. +.PHONY: clean $(addprefix clean-,$(TARGETS)) +clean: $(addprefix clean-,$(TARGETS)) + # The following line dynamically declares all the make targets starting from the TARGETS variable $(foreach t, $(TARGETS), $(eval $(call DeclareTarget,$(t)))) -# This target removes all the .gitignore ignored files from the repository, effectively removing all the object, lib and bin directories, etc. -# It only works if discos was cloned via git -.PHONY: clean-repo -clean-repo: - @echo -n "Cleaning the repository from ignored files..." - -@git clean -fdX .. - @echo "done!" - # This target cleans all the INTROOT so that a clean build process can be executed again .PHONY: clean-dist clean-dist: -- GitLab