]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Simplify build targets for debug library
authorJonathan Wakely <jwakely@redhat.com>
Fri, 11 Nov 2022 23:00:49 +0000 (23:00 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 12 Nov 2022 01:29:47 +0000 (01:29 +0000)
commitba7551485bc5760371462517ec05bc6ba20b3b35
tree4bf07761f72a16d333be6b0403f0cfe0af0097a5
parenta7f51059fb009dcd7d491d6b2164bce75dbd9975
libstdc++: Simplify build targets for debug library

This rewrites the stamp-debug and build-debug targets in src/Makefile so
that each generated Makefile in the debug/$(SUBDIRS) directories is a
make target, instead of being created by a loop in the stamp-debug
recipe. The final adjustments to debug/Makefile are done as part of the
stamp-debug target instead of the build-debug target.

The advantage is that each $(SUBDIRS)/debug/Makefile now has the
corresponding $(SUBDIRS)/Makefile as a prerequisite, so they will be
regenerated if needed. Generating those can also be parallelized by
make, although those steps are very fast so that doesn't really matter.

This also removes the duplication in the stamp-debug recipe, which was
using exactly the same sed command for debug/Makefile and each
debug/$(SUBDIRS)/Makefile. That is done by adding "." to the list of
subdirectories to process. The recipes can also be simplified to use
separate shell commands per line, instead of using backslashes to join
the whole recipe into a single shell command.

Also replace 'echo `date` > stamp-xxx' with just 'date > stamp-xxx'
which is equivalent but simpler.

libstdc++-v3/ChangeLog:

* src/Makefile.am: Simplify debug build targets.
* src/Makefile.in: Regenerate.
libstdc++-v3/src/Makefile.am
libstdc++-v3/src/Makefile.in