summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-11-14 16:02:41 -0500
committerDan Winship <danw@gnome.org>2014-11-14 16:06:58 -0500
commit0a3f1f93d7c6577f2dd2a82bb6a4ee9214f971d1 (patch)
treee5b2e5c84beedf13c1752a9c5096241f1cc2a3f9
parentb322e5908e241e71d85ee6c70d66a86fb970c360 (diff)
downloadNetworkManager-danw/settings-doc-build-bgo740035.tar.gz
fixup! docs: make the settings docs work from tarball buildsdanw/settings-doc-build-bgo740035
-rw-r--r--libnm-util/Makefile.am11
1 files changed, 7 insertions, 4 deletions
diff --git a/libnm-util/Makefile.am b/libnm-util/Makefile.am
index 28c37d41a7..51864df15e 100644
--- a/libnm-util/Makefile.am
+++ b/libnm-util/Makefile.am
@@ -191,19 +191,22 @@ if BUILD_SETTING_DOCS
noinst_DATA = nm-setting-docs.xml nm-keyfile-docs.xml nm-ifcfg-rh-docs.xml
-nm-setting-docs.xml: generate-setting-docs.py $(libnm_util_la_csources) | NetworkManager-1.0.gir NetworkManager-1.0.typelib libnm-util.la
+docs_sources = $(filter-out $(BUILT_SOURCES),$(libnm_util_la_csources))
+
+nm-setting-docs.xml: generate-setting-docs.py $(docs_sources) | NetworkManager-1.0.gir NetworkManager-1.0.typelib libnm-util.la
export GI_TYPELIB_PATH=$(abs_builddir)$${GI_TYPELIB_PATH:+:$$GI_TYPELIB_PATH}; \
export LD_LIBRARY_PATH=$(abs_builddir)/.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}; \
$(srcdir)/generate-setting-docs.py \
--gir $(builddir)/NetworkManager-1.0.gir \
--output $@
-nm-keyfile-docs.xml: generate-plugin-docs.pl $(libnm_util_la_csources)
+nm-keyfile-docs.xml: generate-plugin-docs.pl $(docs_sources)
$(srcdir)/generate-plugin-docs.pl keyfile $(srcdir) $@
-nm-ifcfg-rh-docs.xml: generate-plugin-docs.pl $(libnm_util_la_csources)
+nm-ifcfg-rh-docs.xml: generate-plugin-docs.pl $(docs_sources)
$(srcdir)/generate-plugin-docs.pl ifcfg-rh $(srcdir) $@
-CLEANFILES += nm-setting-docs.xml nm-keyfile-docs.xml nm-ifcfg-rh-docs.xml
+CLEANFILES += $(noinst_DATA)
+EXTRA_DIST += $(noinst_DATA)
endif