From 76b5e24ac9ff5accaa4a45eafd9f1353d74a34f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Tue, 12 Feb 2013 14:47:29 +0100 Subject: [PATCH] build: fix build with --enable-doc (docs/api/Makefile.am) "./autogen.sh --enable-doc && make" produced this error: warning: failed to load external entity "../settings-spec.xml" ../network-manager-docs.xml:57: element include: XInclude error : could not load ../settings-spec.xml, and no fallback was found Removing settings-spec.xml from $(content_files) made the file non-DISTed but it also removed the file as a dependency for html-build.stamp that also runs cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) and $(DOC_MAIN_SGML_FILE) includes settings-spec.xml. Fix that by making $(DOC_MAIN_SGML_FILE) dependent on setting-spec.xml. --- docs/api/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/api/Makefile.am b/docs/api/Makefile.am index d98dc786af..98dd3de75c 100644 --- a/docs/api/Makefile.am +++ b/docs/api/Makefile.am @@ -25,6 +25,9 @@ spec.html: $(XMLS) $(OTHER_FILES) html-build.stamp settings-spec.xml: $(top_builddir)/tools/generate-settings-spec $(top_builddir)/libnm-util/libnm-util.la $(top_builddir)/tools/generate-settings-spec book $@ +# Top-level SGML file includes (depends on) settings-spec.xml +$(DOC_MAIN_SGML_FILE): settings-spec.xml + all: $(GENERATED_FILES) ####################################