[committed] libstdc++: Use -C option to run recursive make in sub-directories

Jonathan Wakely jwakely@redhat.com
Sat Nov 16 01:08:20 GMT 2024


libstdc++-v3/ChangeLog:

	* Makefile.am: Use $(MAKE) -C dir instead of cd dir && $(MAKE).
	* Makefile.in: Regenerate.
---

We require GNU Make, so this is always supported.

Tested x86_64-linux. Pushed to trunk.

 libstdc++-v3/Makefile.am | 4 ++--
 libstdc++-v3/Makefile.in | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libstdc++-v3/Makefile.am b/libstdc++-v3/Makefile.am
index 823e43da926..bb4027266ae 100644
--- a/libstdc++-v3/Makefile.am
+++ b/libstdc++-v3/Makefile.am
@@ -34,11 +34,11 @@ ACLOCAL_AMFLAGS = -I . -I .. -I ../config
 
 # Testsuite/check forwarding targets.
 check-%:
-	cd testsuite && $(MAKE) $@
+	$(MAKE) -C testsuite $@
 
 # Documentation forwarding targets.
 doc-%:
-	cd doc && $(MAKE) $@
+	$(MAKE) -C doc $@
 
 # Documentation conditionals for output.
 if BUILD_XML
diff --git a/libstdc++-v3/Makefile.in b/libstdc++-v3/Makefile.in
index cf8dd8bca50..5beb3146ee6 100644
--- a/libstdc++-v3/Makefile.in
+++ b/libstdc++-v3/Makefile.in
@@ -778,11 +778,11 @@ uninstall-am:
 
 # Testsuite/check forwarding targets.
 check-%:
-	cd testsuite && $(MAKE) $@
+	$(MAKE) -C testsuite $@
 
 # Documentation forwarding targets.
 doc-%:
-	cd doc && $(MAKE) $@
+	$(MAKE) -C doc $@
 
 # Documentation primary rules.
 #
-- 
2.47.0



More information about the Libstdc++ mailing list