Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Sep 2017 14:14:34 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r50881 - head/en_US.ISO8859-1/articles/freebsd-releng
Message-ID:  <201709191414.v8JEEY2D080589@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Tue Sep 19 14:14:34 2017
New Revision: 50881
URL: https://svnweb.freebsd.org/changeset/doc/50881

Log:
  Revert r50867, which added '.PHONY' to the freebsd-releng/Makefile
  to ensure the article.html file would always be updated if any of
  the dependent releng-*.xml files were updated.
  
  Implement a proper fix to ensure the dependencies are properly
  tracked, and the page(s) are rebuilt after an update.
  
  Thank you to wosch@ for providing the correct fix for this.
  
  Submitted by:	wosch
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/en_US.ISO8859-1/articles/freebsd-releng/Makefile

Modified: head/en_US.ISO8859-1/articles/freebsd-releng/Makefile
==============================================================================
--- head/en_US.ISO8859-1/articles/freebsd-releng/Makefile	Tue Sep 19 10:03:26 2017	(r50880)
+++ head/en_US.ISO8859-1/articles/freebsd-releng/Makefile	Tue Sep 19 14:14:34 2017	(r50881)
@@ -12,11 +12,14 @@ INSTALL_ONLY_COMPRESSED?=
 
 SRCS=		article.xml
 
+DEPS!= egrep '<!ENTITY release\.[^ ]+ SYSTEM "./releng-[^ ]+\.xml">' \
+	${SRCS} | sed -E 's,.*"./([^"]+)".*,\1,'
+
 CSS_SHEET_ADDITIONS=extra.css
 
 URL_RELPREFIX?=	../../../..
 DOC_PREFIX?=	${.CURDIR}/../../..
 
-all: .PHONY clean
+index.html ${DOC}.html: ${DEPS}
 
 .include "${DOC_PREFIX}/share/mk/doc.project.mk"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709191414.v8JEEY2D080589>