aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--de_DE.ISO8859-1/books/fdp-primer/Makefile3
-rw-r--r--en_US.ISO8859-1/articles/freebsd-releng/Makefile6
-rw-r--r--share/mk/doc.docbook-dep.mk30
-rw-r--r--share/mk/doc.project.mk5
-rw-r--r--zh_TW.UTF-8/books/fdp-primer/Makefile3
-rw-r--r--zh_TW.UTF-8/books/handbook/Makefile3
6 files changed, 45 insertions, 5 deletions
diff --git a/de_DE.ISO8859-1/books/fdp-primer/Makefile b/de_DE.ISO8859-1/books/fdp-primer/Makefile
index 7d3b8ee45a..56570f310a 100644
--- a/de_DE.ISO8859-1/books/fdp-primer/Makefile
+++ b/de_DE.ISO8859-1/books/fdp-primer/Makefile
@@ -52,4 +52,7 @@ SRCS+= chapters.ent
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
+# Fixme!
+DOCBOOK_DEPS_DISABLE=YES
+
.include "${DOC_PREFIX}/share/mk/doc.project.mk"
diff --git a/en_US.ISO8859-1/articles/freebsd-releng/Makefile b/en_US.ISO8859-1/articles/freebsd-releng/Makefile
index fb708adc4e..b88f22169c 100644
--- a/en_US.ISO8859-1/articles/freebsd-releng/Makefile
+++ b/en_US.ISO8859-1/articles/freebsd-releng/Makefile
@@ -12,14 +12,10 @@ 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}/../../..
-index.html ${DOC}.html: ${DEPS}
-
.include "${DOC_PREFIX}/share/mk/doc.project.mk"
+
diff --git a/share/mk/doc.docbook-dep.mk b/share/mk/doc.docbook-dep.mk
new file mode 100644
index 0000000000..199531f9a7
--- /dev/null
+++ b/share/mk/doc.docbook-dep.mk
@@ -0,0 +1,30 @@
+#
+# $FreeBSD$
+#
+# This include file <doc.docbook-dep.mk> handles implicit dependencies of
+# DocBook documentation in the FreeBSD Documentation Project.
+#
+
+#
+# extract the depending *.xml files from the main
+# input sources on the fly:
+#
+# <!ENTITY release.building SYSTEM "./releng-building.xml">
+#
+# => ./releng-building.xml
+#
+
+.if ${.TARGETS} == "all"
+_DOCBOOK_DEPS_SYSTEM != for i in $$(egrep '<!ENTITY [^ ]+ SYSTEM "[^ ]+\.xml">' ${SRCS} | sed -E 's,.*"([^"]+)".*,\1,');do \
+ if [ -e $$i ]; then \
+ echo $i; \
+ else \
+ echo "Warning: dep file $$(pwd)/$$i does not exists" >&2; \
+ fi; \
+ done
+.endif
+
+DOCBOOK_DEPS += ${_DOCBOOK_DEPS_SYSTEM}
+
+index.html ${DOC}.html: ${DOCBOOK_DEPS}
+
diff --git a/share/mk/doc.project.mk b/share/mk/doc.project.mk
index 6600ffadf1..eef3325cf7 100644
--- a/share/mk/doc.project.mk
+++ b/share/mk/doc.project.mk
@@ -99,6 +99,11 @@ DOC_LOCAL_MK= ${DOC_PREFIX}/${LANGCODE}/share/mk/doc.local.mk
.if defined(DOC)
.if ${DOCFORMAT} == "docbook"
.include "doc.docbook.mk"
+
+.if !defined(DOCBOOK_DEPS_DISABLE) || ${DOCBOOK_DEPS_DISABLE} != "YES"
+.include "doc.docbook-dep.mk"
+.endif
+
.endif
.if ${DOCFORMAT} == "slides"
.include "doc.slides.mk"
diff --git a/zh_TW.UTF-8/books/fdp-primer/Makefile b/zh_TW.UTF-8/books/fdp-primer/Makefile
index 594aaefe3d..dd1e2b1398 100644
--- a/zh_TW.UTF-8/books/fdp-primer/Makefile
+++ b/zh_TW.UTF-8/books/fdp-primer/Makefile
@@ -31,4 +31,7 @@ IMAGES_LIB+= callouts/5.png
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
+# Fixme!
+DOCBOOK_DEPS_DISABLE=YES
+
.include "${DOC_PREFIX}/share/mk/doc.project.mk"
diff --git a/zh_TW.UTF-8/books/handbook/Makefile b/zh_TW.UTF-8/books/handbook/Makefile
index 6adfe8a20a..0c348973bf 100644
--- a/zh_TW.UTF-8/books/handbook/Makefile
+++ b/zh_TW.UTF-8/books/handbook/Makefile
@@ -161,4 +161,7 @@ SYMLINKS= ${DESTDIR} index.html handbook.html
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
+# Fixme!
+DOCBOOK_DEPS_DISABLE=YES
+
.include "${DOC_PREFIX}/share/mk/doc.project.mk"