[DTrace-devel] [PATCH v2 5/9] build: only touch .dir.stamp if it doesn't already exist
Nick Alcock
nick.alcock at oracle.com
Mon Jan 15 19:34:35 UTC 2024
This stops its date being continuously updated, forcing configure
retests all the time. Now it serves its intended purpose of causing
configure retests only if .config was deleted (as is done by e.g.
make clean).
Signed-off-by: Nick Alcock <nick.alcock at oracle.com>
---
Makeconfig | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makeconfig b/Makeconfig
index f6a28d8f79f5..19f4f1cececa 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -127,8 +127,10 @@ $(CONFIG_MK): $(objdir)/.config/config.$(1).mk
endef
$(objdir)/.config/.dir.stamp:
- mkdir -p $(objdir)/.config
- touch $(objdir)/.config/.dir.stamp
+ if [[ ! -f $(objdir)/.config/.dir.stamp ]]; then \
+ mkdir -p $(objdir)/.config; \
+ touch $(objdir)/.config/.dir.stamp; \
+ fi
$(CONFIG_H):
echo '/* This file is automatically generated. */' > $(objdir)/config.h
--
2.43.0.272.gce700b77fd
More information about the DTrace-devel
mailing list