Skip to content

Commit 603e72b

Browse files
committed
Clean up the clean rules of the documentation
Most things should be cleaned by "make clean", except the parts that are shipped in the tarball. These rules had gotten a bit out of whack after the various restructurings of the documentation build rules.
1 parent e0c433c commit 603e72b

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

doc/src/sgml/Makefile

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# PostgreSQL documentation makefile
44
#
5-
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.132 2009/10/06 00:54:26 alvherre Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.133 2009/10/06 20:00:44 petere Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -354,21 +354,19 @@ endif # sqlmansectnum != 7
354354
.SECONDARY: %-A4.tex-ps %-US.tex-ps %-A4.tex-pdf %-US.tex-pdf
355355

356356
clean:
357-
rm -f postgres.xml $(GENERATED_SGML) HTML.index
358-
rm -f INSTALL.html HISTORY.html regress_README.html
359-
rm -f $(addprefix $(srcdir)/,*.tex-ps *.tex-pdf *.dvi *.aux *.log *.out *.fot)
360-
361-
distclean: clean
362357
# text --- these are shipped, but not in this directory
363-
rm -f $(addprefix $(srcdir)/,INSTALL HISTORY regress_README)
358+
rm -f INSTALL HISTORY regress_README
359+
rm -f INSTALL.html HISTORY.html regress_README.html
364360
# print
365-
rm -f $(addprefix $(srcdir)/,*.rtf *.ps *.pdf)
361+
rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.fot
366362
# index
367-
rm -f $(addprefix $(srcdir)/,HTML.index $(GENERATED_SGML))
363+
rm -f HTML.index $(GENERATED_SGML)
368364
# XSLT
369-
rm -f $(addprefix $(srcdir)/,htmlhelp.hhp toc.hhc index.hhk *.fo)
365+
rm -f postgres.xml htmlhelp.hhp toc.hhc index.hhk *.fo
370366
# Texinfo
371-
rm -f $(addprefix $(srcdir)/,*.texixml *.texi *.info db2texi.refs)
367+
rm -f *.texixml *.texi *.info db2texi.refs
368+
369+
distclean: clean
372370

373371
maintainer-clean: distclean
374372
# HTML

0 commit comments

Comments
 (0)