ports/databases/postgresql90-server/files/patch-doc-src-sgml-Makefile
Eygene Ryabinkin 7323d99cc7 Don't rebuild manual pages if configure was changed
Sometimes patches for PostgreSQL touch its configure script.  And the
logics inside current Makefiles for the documentation makes the manual
pages (and other stuff) to be dependent of the timestamp of the
top-level configure file.  This triggers the rebuild of the manual
pages, but since some additional XML-related tools are needed, this
rebuild can fail.

PR: 159844
Approved by: maintainer timeout (1 month)
Feature safe: yes
2011-09-25 22:20:28 +00:00

17 lines
647 B
Text

Manual pages are already present in the PostgreSQL tarball, so we avoid
messing with timestamp: it depends on postgres.xml that, in turn,
depends on almost all SGML files, most notably, version.sgml. And the
latter depends on the configure in the top-level directory, so when
we patch it, build system wants to regenerate manual pages.
--- doc/src/sgml/Makefile.orig 2011-09-13 23:42:58.508672251 +0400
+++ doc/src/sgml/Makefile 2011-09-13 23:43:01.676668807 +0400
@@ -75,8 +75,6 @@
## Man pages
##
-man distprep-man: man-stamp
-
man-stamp: stylesheet-man.xsl postgres.xml
$(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_MAN_FLAGS) $^
touch $@