diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-10-02 10:14:50 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2024-10-02 10:14:50 +0200 |
commit | ba53ccad554bb4f3c2b0e457a18557ae0f54b05e (patch) | |
tree | a274b76891aa6e4bb2de11b8e8da41b7a81d0ac4 /libcpp/files.cc | |
parent | cea87c84eacdb422caeada734ba5138c994d7022 (diff) | |
download | gcc-ba53ccad554bb4f3c2b0e457a18557ae0f54b05e.zip gcc-ba53ccad554bb4f3c2b0e457a18557ae0f54b05e.tar.gz gcc-ba53ccad554bb4f3c2b0e457a18557ae0f54b05e.tar.bz2 |
opts: Fix up regenerate-opt-urls dependencies
It seems that we currently require
1) enabling at least c,c++,fortran,d in --enable-languages
2) first doing make html
before one can successfully regenerate-opt-urls, otherwise without 2)
one gets
make regenerate-opt-urls
make: *** No rule to make target '/home/jakub/src/gcc/obj12x/gcc/HTML/gcc-15.0.0/gcc/Option-Index.html', needed by 'regenerate-opt-urls'. Stop.
or say if not configuring d after make html one still gets
make regenerate-opt-urls
make: *** No rule to make target '/home/jakub/src/gcc/obj12x/gcc/HTML/gcc-15.0.0/gdc/Option-Index.html', needed by 'regenerate-opt-urls'. Stop.
Now, I believe neither 1) nor 2) is really necessary.
The regenerate-opt-urls goal has dependency on 3 Option-Index.html files,
but those files don't have dependencies how to generate them.
make html has dependency on $(HTMLS_BUILD) which adds
$(build_htmldir)/gcc/index.html and lang.html among other things, where
the former actually builds not just index.html but also Option-Index.html
and tons of other files, and lang.html is filled in by configure depending
on configured languages, so sometimes will include gfortran.html and
sometimes d.html.
The following patch adds dependencies of the Option-Index.html on their
corresponding index.html files and that is all that seems to be needed,
make regenerate-opt-urls then works even without prior make html and
even if just a subset of c/c++, fortran and d is enabled.
2024-10-02 Jakub Jelinek <jakub@redhat.com>
* Makefile.in ($(OPT_URLS_HTML_DEPS)): Add dependencies of the
Option-Index.html files on the corresponding index.html files.
Don't mention the requirement that all languages that have their own
HTML manuals to be enabled.
Diffstat (limited to 'libcpp/files.cc')
0 files changed, 0 insertions, 0 deletions