From 0e9b01aefcb2d0e31958ad6f8f44b30f91bcabe8 Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Thu, 5 Dec 2024 21:33:06 +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 5308e29..08ff799 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,7 @@ -OUTPUTS = Metalinker.*/bin Metalinker.*/obj Metalinker/bin Metalinker/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.