From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12179 invoked by alias); 25 Aug 2002 02:09:12 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11551 invoked from network); 25 Aug 2002 02:01:47 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 25 Aug 2002 02:01:47 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 67ED53DFD for ; Sat, 24 Aug 2002 22:01:30 -0400 (EDT) Message-ID: <3D683A79.4070403@ges.redhat.com> Date: Sat, 24 Aug 2002 22:12:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020810 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [rfa:doco] Leave TeX tmp files around Content-Type: multipart/mixed; boundary="------------040500050005000702010601" X-SW-Source: 2002-08/txt/msg00809.txt.bz2 This is a multi-part message in MIME format. --------------040500050005000702010601 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 152 Hello, Eli suggested leaving around the TeX work files. The attached does it but also explains why the are removed before a new TeX run. ok? Andrew --------------040500050005000702010601 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 4819 2002-08-24 Andrew Cagney * Makefile.in (clean): Move to end of file. (distclean, maintainer-clean, realclean): Ditto. (mostlyclean): Move rule to end of file. Use GDB_TEX_TMPS, GDBINT_TEX_TMPS, STABS_TEX_TMPS. (gdb.dvi, gdb.pdf): Do not cleanup TeX temp files after texi2dvi. (gdbint.dvi, gdbint.pdf, stabs.dvi, stabs.pdf): Ditto. Index: Makefile.in =================================================================== RCS file: /cvs/src/src/gdb/doc/Makefile.in,v retrieving revision 1.21 diff -u -r1.21 Makefile.in --- Makefile.in 25 Aug 2002 00:12:33 -0000 1.21 +++ Makefile.in 25 Aug 2002 01:56:22 -0000 @@ -201,27 +201,6 @@ -(cd stage3 ; mv -f * ..) -rmdir stage3 -# The "least clean" level of cleaning. Get rid of files which are -# automatically generated files that are just intermediate files, -# -mostlyclean: - rm -f gdb.mm gdb.ms gdb.me links2roff - rm -f *.aux *.cp* *.fn* *.ky* *.log *.pg* *.toc *.tp* *.vr* - rm -f sedref.dvi sedref.tex tmp.sed - -clean: mostlyclean - rm -f gdb-cfg.texi - -distclean: clean - rm -f Makefile config.status - -# GDBvn.texi, the dvi files, the info files, and the postscript files, -# are all part of the distribution, so it should not be removed by -# "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) echo > tmp.sed @@ -264,6 +243,9 @@ # VPATH will often tell make not to bother building it, because the one # in the srcdir is up to date. (if not, then make should build one here). +# Clean these up before each run. Avoids a catch 22 with not being +# able to re-generate these files (to fix a corruption) because these +# files contain a corruption. GDB_TEX_TMPS = gdb.aux gdb.cp* gdb.fn* gdb.ky* gdb.log gdb.pg* gdb.toc \ gdb.tp* gdb.vr* @@ -275,7 +257,6 @@ cp $(srcdir)/GDBvn.texi . ; else true; fi rm -f $(GDB_TEX_TMPS) $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/gdb.texinfo - rm -f $(GDB_TEX_TMPS) gdb.ps: gdb.dvi $(DVIPS) -o $@ $? @@ -287,7 +268,6 @@ cp $(srcdir)/GDBvn.texi . ; else true; fi rm -f $(GDB_TEX_TMPS) $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/gdb.texinfo - rm -f $(GDB_TEX_TMPS) # GDB MANUAL: info file gdb.info: ${GDB_DOC_FILES} @@ -369,6 +349,9 @@ gdb_toc.html: ${GDB_DOC_FILES} $(MAKEHTML) $(MAKEHTMLFLAGS) -I ${READLINE_DIR} -I ${GDBMI_DIR} -I $(srcdir) $(srcdir)/gdb.texinfo +# Clean these up before each run. Avoids a catch 22 with not being +# able to re-generate these files (to fix a corruption) because these +# files contain a corruption. GDBINT_TEX_TMPS = gdbint.aux gdbint.cp* gdbint.fn* gdbint.ky* \ gdbint.log gdbint.pg* gdbint.toc gdbint.tp* gdbint.vr* @@ -376,7 +359,6 @@ gdbint.dvi: $(GDBINT_DOC_FILES) rm -f $(GDBINT_TEX_TMPS) $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/gdbint.texinfo - rm -f $(GDBINT_TEX_TMPS) gdbint.ps : gdbint.dvi $(DVIPS) -o $@ $? @@ -384,7 +366,6 @@ gdbint.pdf: $(GDBINT_DOC_FILES) rm -f $(GDBINT_TEX_TMPS) $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/gdbint.texinfo - rm -f $(GDBINT_TEX_TMPS) # GDB INTERNALS MANUAL: info file @@ -404,6 +385,9 @@ stabs_toc.html: $(STABS_DOC_FILES) $(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/stabs.texinfo +# Clean these up before each run. Avoids a catch 22 with not being +# able to re-generate these files (to fix a corruption) because these +# files contain a corruption. STABS_TEX_TMPS = stabs.aux stabs.cp* stabs.fn* stabs.ky* \ stabs.log stabs.pg* stabs.toc stabs.tp* stabs.vr* @@ -411,7 +395,6 @@ stabs.dvi : $(STABS_DOC_FILES) rm -f $(STABS_TEX_TMPS) $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/stabs.texinfo - rm -f $(STABS_TEX_TMPS) stabs.ps: stabs.dvi $(DVIPS) -o $@ $? @@ -419,9 +402,33 @@ stabs.pdf: $(STABS_DOC_FILES) rm -f $(STABS_TEX_TMPS) $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/stabs.texinfo - rm -f $(STABS_TEX_TMPS) force: Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag) config.status $(SHELL) ./config.status + + +# The "least clean" level of cleaning. Get rid of files which are +# automatically generated files that are just intermediate files, + +mostlyclean: + rm -f gdb.mm gdb.ms gdb.me links2roff + rm -f $(GDB_TEX_TMPS) + rm -f $(GDBINT_TEX_TMPS) + rm -f $(STABS_TEX_TMPS) + rm -f sedref.dvi sedref.tex tmp.sed + +clean: mostlyclean + rm -f gdb-cfg.texi + +distclean: clean + rm -f Makefile config.status + +# GDBvn.texi, the dvi files, the info files, and the postscript files, +# are all part of the distribution, so it should not be removed by +# "clean" or "distclean". Use maintainer-clean to remove them. + +maintainer-clean realclean: distclean + rm -f GDBvn.texi *.info* *.dvi *.ps *.html *.pdf + --------------040500050005000702010601--