binutils-gdb/gdb/doc
Andrew Burgess ad666becfe gdb/doc: don't delete *.pod files too early
When doing 'make -C gdb/doc man' to build the man pages, I noticed
that the outputs were being rebuilt each time the make command was
rerun, even when the input files hadn't changed.

This was caused by this commit:

  commit 824083f34c
  Date:   Fri Apr 12 17:47:20 2024 +0100

      gdb/doc: use silent-rules.mk in the Makefile

Which split the generation of the .pod file from the actual creation
of the man page file.  Prior to this split it was OK to delete the
.pod file at the end of the recipe, the rule depending on the .texi
input file, and output was the .1 or .5 man page file.

Now however, with the split, the man page creation depends on the .pod
file, if we delete this after creating the .1 or .5 man page file then
the next time we run 'make' the .pod file is missing and is
regenerated, which in turn triggers the regeneration of the man page
file.

Fix this by leaving the .pod file around, and only cleaning up these
files in the 'mostlyclean' target.

Which leads to a second problem, the POD_FILE_TMPS is not created
correctly, so we don't actually clean up the .pod files!  This too is
fixed in this commit.

After this commit running 'make -C gdb/doc man' will build the manual
pages the first time, and each subsequent run will do nothing.

Running 'make -C gdb/doc mostlyclean' will now delete the .pod files.

Approved-By: Tom Tromey <tom@tromey.com>
2024-05-14 16:53:29 +01:00
..
.gitignore
a4rc.sed
agentexpr.texi Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
all-cfg.texi Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
annotate.texinfo Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
ChangeLog-1991-2021
doxy-index.in Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
Doxyfile-base.in Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
Doxyfile-gdb-api.in Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
Doxyfile-gdb-xref.in Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
Doxyfile-gdbserver.in Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
fdl.texi
filter-for-doxygen
filter-params.pl
gdb.texinfo gdb/doc: document how filename arguments are formatted 2024-04-29 10:08:59 +01:00
gpl.texi
guile.texi gdb/doc: Fix several typos in GDB documentation 2024-02-15 10:13:29 +02:00
lpsrc.sed
Makefile.in gdb/doc: don't delete *.pod files too early 2024-05-14 16:53:29 +01:00
psrc.sed
python.texi Export "finish" return value to Python 2024-03-08 10:50:12 -07:00
refcard.tex Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
stabs.texinfo Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
stack_frame.eps
stack_frame.pdf
stack_frame.png
stack_frame.svg
stack_frame.txt