From 32b2776afcf37e3c92500e7ee91fc79e5596bb73 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 14 May 2024 16:54:00 +0200 Subject: [PATCH] makefiles: use properly defined varitable Variable used for tracking dependencies is USE_TRACKING. --- base/Makefile | 2 +- device_mapper/Makefile | 2 +- test/unit/Makefile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/base/Makefile b/base/Makefile index 2e4082a54..66d4aa2bc 100644 --- a/base/Makefile +++ b/base/Makefile @@ -35,6 +35,6 @@ $(BASE_TARGET): $(BASE_OBJECTS) $(Q) $(RM) $@ $(Q) $(AR) rsv $@ $(BASE_OBJECTS) > /dev/null -ifeq ("$(DEPENDS)","yes") +ifeq ("$(USE_TRACKING)","yes") -include $(BASE_DEPENDS) endif diff --git a/device_mapper/Makefile b/device_mapper/Makefile index ed455e5d9..b1aa53c36 100644 --- a/device_mapper/Makefile +++ b/device_mapper/Makefile @@ -48,6 +48,6 @@ $(DEVICE_MAPPER_TARGET): $(DEVICE_MAPPER_OBJECTS) $(Q) $(RM) $@ $(Q) $(AR) rsv $@ $(DEVICE_MAPPER_OBJECTS) > /dev/null -ifeq ("$(DEPENDS)","yes") +ifeq ("$(USE_TRACKING)","yes") -include $(DEVICE_MAPPER_DEPENDS) endif diff --git a/test/unit/Makefile b/test/unit/Makefile index 7298b4ed0..c8fe65b44 100644 --- a/test/unit/Makefile +++ b/test/unit/Makefile @@ -61,6 +61,6 @@ run-unit-test: $(UNIT_TARGET) cd $$OLDPWD ;\ $(RM) -r "$${TESTDIR:?}" -ifeq ("$(DEPENDS)","yes") --include $(UNIT_SOURCE:%.c=%.d) +ifeq ("$(USE_TRACKING)","yes") +-include $(UNIT_DEPENDS) endif