[patch] Implement "make pdf" and "make install-pdf" targets.

Brooks Moses brooks.moses@codesourcery.com
Fri Feb 23 08:28:00 GMT 2007


Hello!

The attached patch implements "make pdf" in all of the parts of src/ 
included in the GDB source tarball, and also implements "make 
install-pdf" within src/gdb.

Within gdb, the primary changes to implement a "pdf" target were just 
adding the targets into the makefiles, although I also added a rule to 
make refcard.pdf, paralleling the rule to make refcard.dvi.  This also 
required adding page-size information to refcard.tex; the test for 
whether pdfTeX is in use is based on recommendations in the UK TeX FAQ.

The "install-pdf" rule in the gdb/doc Makefile.in is a slightly-edited 
copy of the stock rule from automake 1.10.  Also, implementing 
"install-pdf" required specifying an install directory; I chose 
$(prefix)/share/doc/gdb, because that seems to be the standard from what 
automake uses, and share/doc is also where the toplevel configure puts 
the html documentation.

While the "pdf" target within src/gdb can stand alone, it's convenient 
to be able to issue a "make pdf" command within the top-level build 
directory, and it doesn't take very much to make this work, so I've 
tossed in the relevant patches for that.  The src/sim and src/readline 
patches are just dummy targets, and the src/etc patch is a duplicate of 
its rule for making dvi files.  I'm not sure where these bits actually 
need to go for approval, though; advice would be welcome!

The patch has been tested on i686-pc-linux-gnu, with "make pdf" from the 
top level of the build directory and "make install-pdf" from the 
build/gdb directory, and a "make" and "make dvi" from the top level to 
confirm it doesn't break things.

Ok to commit, at least for the gdb parts?  (I don't have commit 
privileges, so someone else will need to commit this for me, if it's 
approved.  Thanks!)

- Brooks


gdb/ChangeLog -------------------------------------------------
2007-02-20  Brooks Moses  <brooks.moses@codesourcery.com>

	* Makefile.in: Add support for a "pdf" target.
	* doc/Makefile.in: Add "pdfdir" installation
	directory, PDFTEX macro, support for "install-pdf" target,
	and rules for making a pdf version of refcard.texi.
	* doc/refcard.tex: Specify paper size for PDF output.
	* gdbserver/Makefile.in: Add dummy "pdf" and
	"install-pdf" targets.
	* testsuite/Makefile.in: Likewise.

etc/ChangeLog -------------------------------------------------
2007-02-20  Brooks Moses  <brooks.moses@codesourcery.com>

	* Makefile.in: Add support for a "pdf" target.

sim/ChangeLog -------------------------------------------------
2007-02-20  Brooks Moses  <brooks.moses@codesourcery.com>

	* Makefile.in: Add dummy "pdf" target.

readline/ChangeLog --------------------------------------------
2007-02-20  Brooks Moses  <brooks.moses@codesourcery.com>

	* Makefile.in: Add dummy "pdf" target.

---------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-make-pdf-2a.diff
Type: text/x-patch
Size: 7582 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070223/b8c82798/attachment.bin>


More information about the Gdb-patches mailing list