This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [rfa/5] add PDF target to doc directory


Andrew Cagney wrote:
> 
> Hello,
> 
> The attached adds a PDF target to the doc directory. I'll also make a
> PDF version of the GDB doc's available.

Hmm,

Attatched is a revision that uses PDFTEX.  Poking around some more
turned up PDFTEX and its output is about half the size of ps2pdf!
Now if only there was a PDF tool that added links (like html/info) and
put the chapter in the correct place.

	Andrew
Fri May 26 15:55:33 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+ 
+ 	* Makefile.in (pdf, gdbint.pdf, gdb.pdf, stabs.pdf): New targets.
+   	Generate using pdftex.
+ 	(PDFTEX): Define.
+  	(STAGESTUFF, maintainer-clean realclean): Add *.pdf.
+ 
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/doc/Makefile.in,v
retrieving revision 1.4.2.4
diff -p -r1.4.2.4 Makefile.in
*** Makefile.in	2000/05/24 02:06:34	1.4.2.4
--- Makefile.in	2000/05/27 23:57:21
*************** TEXINDEX = texindex
*** 92,97 ****
--- 92,100 ----
  # Program to generate Postscript files from DVI files.
  DVIPS = dvips
  
+ # Program to generate PDF files from tex files.
+ PDFTEX = pdftex
+ 
  # Main GDB manual's source files
  SFILES_INCLUDED = gdb-cfg.texi $(srcdir)/annotate.texi
  
*************** info: gdb.info gdbint.info stabs.info
*** 109,115 ****
  dvi: gdb.dvi gdbint.dvi stabs.dvi refcard.dvi
  ps: gdb.ps gdbint.ps stabs.ps refcard.ps
  html: gdb_toc.html gdbint_toc.html stabs_toc.html
! all-doc: info dvi ps
  diststuff: info
  
  install-info: info
--- 112,119 ----
  dvi: gdb.dvi gdbint.dvi stabs.dvi refcard.dvi
  ps: gdb.ps gdbint.ps stabs.ps refcard.ps
  html: gdb_toc.html gdbint_toc.html stabs_toc.html
! pdf: gdb.pdf gdbint.pdf stabs.pdf
! all-doc: info dvi ps # pdf
  diststuff: info
  
  install-info: info
*************** install-html: html
*** 130,136 ****
  		$(INSTALL_DATA) $$i $(htmldir)/$$i ; \
  	done
  
! STAGESTUFF = *.info* gdb-all.texi GDBvn.texi *.ps *.dvi
  
  # Copy the object files from a particular stage into a subdirectory.
  stage1: force
--- 134,140 ----
  		$(INSTALL_DATA) $$i $(htmldir)/$$i ; \
  	done
  
! STAGESTUFF = *.info* gdb-all.texi GDBvn.texi *.ps *.dvi *.pdf
  
  # Copy the object files from a particular stage into a subdirectory.
  stage1: force
*************** distclean: clean
*** 181,187 ****
  # "clean" or "distclean".  Use maintainer-clean to remove them.
  
  maintainer-clean realclean: distclean
! 	rm -f GDBvn.texi *.info* *.dvi *.ps *.html
  
  # GDB QUICK REFERENCE (dvi output)
  refcard.dvi : refcard.tex $(REFEDITS)
--- 185,191 ----
  # "clean" or "distclean".  Use maintainer-clean to remove them.
  
  maintainer-clean realclean: distclean
! 	rm -f GDBvn.texi *.info* *.dvi *.ps *.html *.pdf
  
  # GDB QUICK REFERENCE (dvi output)
  refcard.dvi : refcard.tex $(REFEDITS)
*************** gdb.dvi: ${SFILES_DOC}
*** 243,248 ****
--- 247,264 ----
  gdb.ps: gdb.dvi
  	$(DVIPS) -o $@ $?
  
+ gdb.pdf: ${SFILES_DOC}
+ 	if [ ! -f ./GDBvn.texi ]; then \
+ 		(test "$$LN_S" = "ln -s" && ln -s $(srcdir)/GDBvn.texi .) || \
+ 		ln $(srcdir)/GDBvn.texi . || \
+ 		cp $(srcdir)/GDBvn.texi . ; else true; fi
+ 	$(SET_TEXINPUTS) $(PDFTEX) gdb.texinfo
+ 	$(SET_TEXINPUTS) $(PDFTEX) gdb.texinfo
+ 	$(TEXINDEX) gdb.??
+ 	$(SET_TEXINPUTS) $(PDFTEX) gdb.texinfo
+ 	rm -f gdb.aux gdb.cp* gdb.fn* gdb.ky* gdb.log gdb.pg* gdb.toc \
+ 		gdb.tp* gdb.vr*
+ 
  # GDB MANUAL: info file
  # We're using texinfo 3.12; older makeinfo's may not be able to
  # cope with all the markup.  
*************** gdbint.dvi : gdbint.texinfo
*** 370,375 ****
--- 386,398 ----
  gdbint.ps : gdbint.dvi
  	$(DVIPS) -o $@ $?
  
+ gdbint.pdf: gdbint.dvi
+ 	$(SET_TEXINPUTS) $(PDFTEX) gdbint.texinfo
+ 	$(TEXINDEX) gdbint.??
+ 	$(SET_TEXINPUTS) $(PDFTEX) gdbint.texinfo
+ 	rm -f gdbint.aux gdbint.cp* gdbint.fn* gdbint.ky* \
+ 		gdbint.log gdbint.pg* gdbint.toc gdbint.tp* gdbint.vr*
+ 
  # GDB INTERNALS MANUAL: info file
  
  gdbint.info: gdbint.texinfo
*************** stabs.dvi : stabs.texinfo
*** 398,403 ****
--- 421,433 ----
  
  stabs.ps: stabs.dvi
  	$(DVIPS) -o $@ $?
+ 
+ stabs.pdf: stabs.dvi
+ 	$(SET_TEXINPUTS) $(PDFTEX) stabs.texinfo
+ 	$(TEXINDEX) stabs.??
+ 	$(SET_TEXINPUTS) $(PDFTEX) stabs.texinfo
+ 	rm -f stabs.aux stabs.cp* stabs.fn* stabs.ky* \
+ 		stabs.log stabs.pg* stabs.toc stabs.tp* stabs.vr*
  
  force:
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]