mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 10:46:59 +00:00
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.
This commit is contained in:
parent
bd01d9ca2e
commit
11e26d015a
18
Makefile.am
18
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
|
||||
|
||||
|
||||
clients_cli_settings_doc_c = clients/cli/settings-docs.c
|
||||
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.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 \
|
||||
|
|
Loading…
Reference in a new issue