build: fix build with --enable-doc (docs/api/Makefile.am)
authorJiří Klimeš <jklimes@redhat.com>
Tue, 12 Feb 2013 13:47:29 +0000 (14:47 +0100)
committerJiří Klimeš <jklimes@redhat.com>
Tue, 12 Feb 2013 16:25:20 +0000 (17:25 +0100)
commit76b5e24ac9ff5accaa4a45eafd9f1353d74a34f8
treea8dd93f4f104b07e1dae9d60c997815146c8eb87
parentabfb8374d1be1f47f97b9050287d997b981bab36
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