diff options
author | Thomas Haller <thaller@redhat.com> | 2016-11-21 14:50:35 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-11-21 15:48:05 +0100 |
commit | 11e26d015a632b3c6866cf135f230e018b5055e9 (patch) | |
tree | b6918fc1204da1da07bc9c83e2d8e85e3968e631 | |
parent | bd01d9ca2e4a4333ea6dd4d9e62f0cf6c34fa072 (diff) | |
download | NetworkManager-11e26d015a632b3c6866cf135f230e018b5055e9.tar.gz |
build: add explicit dependency of nmcli sources to "settings-docs.c"
Instead of relying on BUILT_SOURCES.
$ git clean -fdx && NOCONFIGURE=x ./autogen.sh && ./configure --enable-gtk-doc && make clients/cli/nmcli
Also, add the file to DISTCLEANFILES.
-rw-r--r-- | Makefile.am | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am index 74840caa4b..497e1d7270 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2981,6 +2981,7 @@ endif clients_cli_nmcli_LDFLAGS = \ -Wl,--version-script="$(top_srcdir)/linker-script-binary.ver" +$(clients_cli_nmcli_OBJECTS): $(clients_cli_settings_doc_c) install-data-hook-nmcli: $(mkinstalldirs) $(DESTDIR)$(completiondir) @@ -2995,15 +2996,20 @@ uninstall_hook += uninstall-hook-nmcli endif -if BUILD_SETTING_DOCS -clients/cli/settings-docs.c: clients/cli/settings-docs.xsl libnm/nm-property-docs.xml +clients_cli_settings_doc_c = clients/cli/settings-docs.c +if BUILD_SETTING_DOCS +$(clients_cli_settings_doc_c): clients/cli/settings-docs.xsl libnm/nm-property-docs.xml $(AM_V_GEN) xsltproc --output $@ $^ - -BUILT_SOURCES += clients/cli/settings-docs.c -EXTRA_DIST += clients/cli/settings-docs.c - +DISTCLEANFILES += $(clients_cli_settings_doc_c) +else +$(clients_cli_settings_doc_c): + @echo "to generate $(clients_cli_settings_doc_c), configure with --enable-gtk-doc" + @echo "alternatively, build --without-nmcli" + @false endif +EXTRA_DIST += $(clients_cli_settings_doc_c) + EXTRA_DIST += \ clients/cli/nmcli-completion \ |