[DTrace-devel] [PATCH v5 5/9] build: only touch .dir.stamp if it doesn't already exist
Nick Alcock
nick.alcock at oracle.com
Fri Feb 2 18:37:39 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 6c6d22fa2537..4bf9811cedaf 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -132,8 +132,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