aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-03-01 11:20:51 +0000
committerJonathan Wakely <jwakely@redhat.com>2024-03-19 15:20:07 +0000
commit90788dd722346560d410fe9a5c2d543811027336 (patch)
tree891387e48ff941c5b7c06caa9b99e45173325085 /libstdc++-v3/include
parentd1b8c2237d7c6a2d52ea5a852a9a11ad426496f3 (diff)
downloadgcc-90788dd722346560d410fe9a5c2d543811027336.zip
gcc-90788dd722346560d410fe9a5c2d543811027336.tar.gz
gcc-90788dd722346560d410fe9a5c2d543811027336.tar.bz2
libstdc++: Regenerate <bits/version.h> in maintainer mode
This is a generated header but regenerating it requires the manual step of running 'make -C include update-version' in the libstdc++ build dir. Make it regenerate automatically when --enable-maintainer-mode is used. libstdc++-v3/ChangeLog: * include/Makefile.am [MAINTAINER_MODE]: Add target to automatically update <bits/version.h>. * include/Makefile.in: Regenerate. gcc/ChangeLog: * doc/install.texi (Prerequisites): Document use of autogen for libstdc++.
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/Makefile.am6
-rw-r--r--libstdc++-v3/include/Makefile.in4
2 files changed, 10 insertions, 0 deletions
diff --git a/libstdc++-v3/include/Makefile.am b/libstdc++-v3/include/Makefile.am
index 6415235..cb902de 100644
--- a/libstdc++-v3/include/Makefile.am
+++ b/libstdc++-v3/include/Makefile.am
@@ -1480,6 +1480,12 @@ update-version:
cd ${bits_srcdir} && \
autogen version.def
+if MAINTAINER_MODE
+# Regenerate it automatically in maintainer mode.
+${bits_srcdir}/version.h: ${bits_srcdir}/version.def ${bits_srcdir}/version.tpl
+ $(MAKE) update-version
+endif
+
# The real deal.
install-data-local: install-headers
install-headers:
diff --git a/libstdc++-v3/include/Makefile.in b/libstdc++-v3/include/Makefile.in
index 5a965c8..9357087 100644
--- a/libstdc++-v3/include/Makefile.in
+++ b/libstdc++-v3/include/Makefile.in
@@ -1954,6 +1954,10 @@ update-version:
cd ${bits_srcdir} && \
autogen version.def
+# Regenerate it automatically in maintainer mode.
+@MAINTAINER_MODE_TRUE@${bits_srcdir}/version.h: ${bits_srcdir}/version.def ${bits_srcdir}/version.tpl
+@MAINTAINER_MODE_TRUE@ $(MAKE) update-version
+
# The real deal.
install-data-local: install-headers
install-headers: