gtk-doc/gtk-doc-Generate-main-sgml.patch
2017-10-27 13:12:59 +00:00

48 lines
1.4 KiB
Diff

From c08cc78562c59082fc83b55b58747177510b7a70 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Fri, 11 Aug 2017 21:06:59 +0200
Subject: gtk-doc.make: Generate main sgml file by waiting on mkdb
The 'empty' test fails on some machines when doing a parallel build, as
make cannot find tester-docs.xml. Add a rule to ensure make waits for
gtkdoc-mkdb to generate the file.
This will also fix first time parallel builds.
https://bugzilla.gnome.org/show_bug.cgi?id=786174
---
gtk-doc.make | 3 +++
tests/gtk-doc.make | 3 +++
2 files changed, 6 insertions(+)
diff --git a/gtk-doc.make b/gtk-doc.make
index e5777b6..d2a8b33 100644
--- a/gtk-doc.make
+++ b/gtk-doc.make
@@ -152,6 +152,9 @@ sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(HF
sgml.stamp: sgml-build.stamp
@true
+$(DOC_MAIN_SGML_FILE): sgml-build.stamp
+ @true
+
xml/gtkdocentities.ent: Makefile
$(GTK_DOC_V_XML)$(MKDIR_P) $(@D) && ( \
echo "<!ENTITY package \"$(PACKAGE)\">"; \
diff --git a/tests/gtk-doc.make b/tests/gtk-doc.make
index 808fda4..cb8e164 100644
--- a/tests/gtk-doc.make
+++ b/tests/gtk-doc.make
@@ -141,6 +141,9 @@ sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(HF
sgml.stamp: sgml-build.stamp
@true
+$(DOC_MAIN_SGML_FILE): sgml-build.stamp
+ @true
+
xml/gtkdocentities.ent: Makefile
@$(MKDIR_P) $(@D) && ( \
echo "<!ENTITY package \"$(PACKAGE)\">"; \
--
cgit v0.12