Skip to content

Commit b328853

Browse files
committed
Make sure that 'make distclean' cleans out all files that are not meant
to be shipped. Also, allow 'make clean' to remove intermediate working files.
1 parent 1a6d678 commit b328853

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

doc/src/sgml/Makefile

Lines changed: 16 additions & 12 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.125 2009/08/11 22:21:51 petere Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.126 2009/08/15 01:56:35 tgl Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -178,8 +178,6 @@ postgres.pdf:
178178
pdfjadetex $<
179179
pdfjadetex $<
180180

181-
.PRECIOUS: %-A4.tex-ps %-US.tex-ps %-A4.tex-pdf %-US.tex-pdf
182-
183181
# Cancel built-in suffix rules, interfering with PS building
184182
.SUFFIXES:
185183

@@ -357,22 +355,28 @@ endif # sqlmansectnum != 7
357355
# This allows removing some files from the distribution tarballs while
358356
# keeping the dependencies satisfied.
359357
.SECONDARY: postgres.xml $(GENERATED_SGML) HTML.index
358+
.SECONDARY: INSTALL.html HISTORY.html regress_README.html
359+
.SECONDARY: %-A4.tex-ps %-US.tex-ps %-A4.tex-pdf %-US.tex-pdf
360360

361-
distclean:
361+
clean:
362362
rm -f postgres.xml $(GENERATED_SGML) HTML.index
363+
rm -f INSTALL.html HISTORY.html regress_README.html
364+
rm -f $(addprefix $(srcdir)/,*.tex-ps *.tex-pdf *.dvi *.aux *.log *.out *.fot)
363365

364-
maintainer-clean: distclean
365-
# HTML
366-
rm -rf $(addprefix $(srcdir)/,html/ html-stamp)
367-
# man
368-
rm -rf $(addprefix $(srcdir)/,man1/ man3/ man7/ man-stamp)
366+
distclean: clean
367+
# text --- these are shipped, but not in this directory
368+
rm -f $(addprefix $(srcdir)/,INSTALL HISTORY regress_README)
369369
# print
370-
rm -f $(addprefix $(srcdir)/,*.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.fot)
370+
rm -f $(addprefix $(srcdir)/,*.rtf *.ps *.pdf)
371371
# index
372372
rm -f $(addprefix $(srcdir)/,HTML.index $(GENERATED_SGML))
373-
# text
374-
rm -f $(addprefix $(srcdir)/,INSTALL HISTORY regress_README)
375373
# XSLT
376374
rm -f $(addprefix $(srcdir)/,htmlhelp.hhp toc.hhc index.hhk *.fo)
377375
# Texinfo
378376
rm -f $(addprefix $(srcdir)/,*.texixml *.texi *.info db2texi.refs)
377+
378+
maintainer-clean: distclean
379+
# HTML
380+
rm -rf $(addprefix $(srcdir)/,html/ html-stamp)
381+
# man
382+
rm -rf $(addprefix $(srcdir)/,man1/ man3/ man7/ man-stamp)

0 commit comments

Comments
 (0)