Hi,
Are there any objections against removing NOAUTODEPS support? I noticed
that ./config.status is often run if no changes have been made to any
configure script. Hence this proposal to remove NOAUTODEPS support and
instead to let developers run the configure script and/or autoreconf
when necessary.
Thanks,
Bart.
Subject: [PATCH] Makefile.in: Remove NOAUTODEPS support
While configure script changes are rare, it often happens that config.status
is run when it shouldn't. Remove NOAUTODEPS support such that config.status
is not run automatically if NOAUTODEPS has not been set. Instead, let
developers
run autoreconf and/or the Net-SNMP configure script when necessary. See also
https://net-snmp.sourceforge.io/wiki/index.php/Build_System.
---
Makefile.in | 39 ---------------------------------------
stamp-h | 1 -
stamp-h.in | 1 -
3 files changed, 41 deletions(-)
delete mode 100644 stamp-h
delete mode 100644 stamp-h.in
diff --git a/Makefile.in b/Makefile.in
index 1228065c633c..af115241c089 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -302,16 +302,6 @@ configclean: makefileclean
touchit:
touch configure include/net-snmp/net-snmp-config.h.in
touch config.status
- touch stamp-h stamp-h.in
-
-Makefile: Makefile.in config.status Makefile.rules Makefile.top
- @if test "x$(NOAUTODEPS)" = "x"; then \
- echo "running config.status because the following file(s)
changed:"; \
- echo " $?"; \
- ./config.status; \
- else \
- echo "WARNING: not running config.status"; \
- fi
configure_ac = configure.ac \
configure.d/config_modules_agent \
@@ -334,35 +324,6 @@ configure_ac = configure.ac \
configure.d/config_project_types \
configure.d/config_project_with_enable
-$(srcdir)/include/net-snmp/net-snmp-config.h.in: stamp-h.in
-$(srcdir)/stamp-h.in: $(configure_ac)
- @if test "x$(NOAUTODEPS)" = "x" -a "x$(AUTOHEADER)" != "x:"; then \
- cd ${srcdir} && LC_COLLATE=C $(AUTOHEADER); \
- echo timestamp > ${srcdir}/stamp-h.in; \
- else \
- echo "WARNING: not running autoheader"; \
- fi
-
-include/net-snmp/net-snmp-config.h: stamp-h
-stamp-h: include/net-snmp/net-snmp-config.h.in config.status
- @if test "x$(NOAUTODEPS)" = "x"; then \
- echo "running config.status because the following file(s)
changed:"; \
- echo " $?"; \
- ./config.status; \
- echo timestamp > stamp-h; \
- else \
- echo "WARNING: not running config.status"; \
- fi
-
-$(srcdir)/configure: $(configure_ac) aclocal.m4
- @if test "x$(NOAUTODEPS)" = "x" -a "x$(AUTOCONF)" != "x:"; then \
- cd ${srcdir} && $(AUTOCONF); \
- echo "Please run configure now."; \
- sh -c exit 2; \
- else \
- echo "WARNING: not running autoconf"; \
- fi
-
gendir=dist/generation-scripts
generation-scripts: generation-scripts-dirs
$(gendir)/gen-transport-headers $(gendir)/gen-security-headers
diff --git a/stamp-h b/stamp-h
deleted file mode 100644
index 9788f70238c9..000000000000
--- a/stamp-h
+++ /dev/null
@@ -1 +0,0 @@
-timestamp
diff --git a/stamp-h.in b/stamp-h.in
deleted file mode 100644
index 9788f70238c9..000000000000
--- a/stamp-h.in
+++ /dev/null
@@ -1 +0,0 @@
-timestamp
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders