From 1ab8e5ab98b02d9777eab42762a395baf9cb8c94 Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Thu, 5 Dec 2024 21:32:52 +0300 Subject: [PATCH] int - Made 'clean' more dynamic --- We've made cleaning the bin and the obj directories more dynamic. --- Type: int Breaking: False Doc Required: False Backport Required: False Part: 1/1 --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c205a9d..08ff799 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,7 @@ -OUTPUTS = VisualCard.*/bin VisualCard.*/obj VisualCard/bin VisualCard/obj +ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) +OUTPUTS := \ + -name "bin" -or \ + -name "obj" .PHONY: all @@ -16,6 +19,6 @@ doc: $(MAKE) -C tools invoke-doc-build clean: - rm -rf $(OUTPUTS) + find $(ROOT_DIR) -type d \( $(OUTPUTS) \) -print -exec rm -rf {} + # This makefile is just a wrapper for tools scripts.