summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authoranlan_cs <vic.lan@pica8.com>2022-12-23 12:22:01 +0100
committeranlan_cs <vic.lan@pica8.com>2023-01-09 02:28:35 +0100
commit99c5b6d430a8700d734ffe2503c17b0760689bf3 (patch)
tree0d4d35b518158369f09670c69691a038601f073f /vtysh
parentMerge pull request #12555 from anlancs/fix/bgp-debug-info (diff)
downloadfrr-99c5b6d430a8700d734ffe2503c17b0760689bf3.tar.xz
frr-99c5b6d430a8700d734ffe2503c17b0760689bf3.zip
vtysh: fix build failure for certain case
The build failed if two conditions are met at the same time: 1. Configure with `--disable-dependency-tracking` 2. Set an indenpendent build directory ``` anlan@host:~/frr/build$ make make: Entering directory '/home/anlan/frr/build' true /usr/bin/perl ../vtysh/daemons.pl zebra bgpd ripd ripngd ospfd ospf6d isisd fabricd nhrpd ldpd babeld eigrpd pimd pim6d pbrd staticd bfdd vrrpd pathd > vtysh/vtysh_daemons.h /bin/bash: line 1: vtysh/vtysh_daemons.h: No such file or directory make: *** [Makefile:17644: vtysh/vtysh_daemons.h] Error 1 make: Leaving directory '/home/anlan/frr/build' ``` `~/frr/` is source directory, `~/frr/build/` is the specified build directory. So, just create necessary directory - `vtysh/`. Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/subdir.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/vtysh/subdir.am b/vtysh/subdir.am
index cc2a70ade..72204201d 100644
--- a/vtysh/subdir.am
+++ b/vtysh/subdir.am
@@ -37,4 +37,5 @@ $(vtysh_vtysh_OBJECTS): vtysh/vtysh_daemons.h
CLEANFILES += vtysh/vtysh_daemons.h
vtysh/vtysh_daemons.h:
+ mkdir -p vtysh
$(PERL) $(top_srcdir)/vtysh/daemons.pl $(vtysh_daemons) > vtysh/vtysh_daemons.h