From 97fc5adacb4239a5cb73f69ff4564bc2afa06a30 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 30 Sep 2020 01:08:17 +0300 Subject: vtysh: fix commands when building only isisd or fabricd * add files to vtysh_scan when building only fabricd * don't add isisd/fabricd commands when daemon build is disabled Signed-off-by: Igor Ryzhov --- vtysh/subdir.am | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'vtysh/subdir.am') diff --git a/vtysh/subdir.am b/vtysh/subdir.am index 3e9b8a3dc..e7a1049b6 100644 --- a/vtysh/subdir.am +++ b/vtysh/subdir.am @@ -31,5 +31,17 @@ am__v_EXTRACT_ = $(am__v_EXTRACT_$(AM_DEFAULT_VERBOSITY)) am__v_EXTRACT_0 = @echo " EXTRACT " $@; am__v_EXTRACT_1 = +if ISISD +HAVE_ISISD = --have-isisd +else +HAVE_ISISD = +endif + +if FABRICD +HAVE_FABRICD = --have-fabricd +else +HAVE_FABRICD = +endif + vtysh/vtysh_cmd.c: vtysh/extract.pl $(vtysh_scan) - $(AM_V_EXTRACT) $^ > vtysh/vtysh_cmd.c + $(AM_V_EXTRACT) $^ $(HAVE_ISISD) $(HAVE_FABRICD) > vtysh/vtysh_cmd.c -- cgit v1.2.3