From: anlan_cs Date: Fri, 23 Dec 2022 11:22:01 +0000 (+0800) Subject: vtysh: fix build failure for certain case X-Git-Tag: frr-8.5.1~115^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=99c5b6d430a8700d734ffe2503c17b0760689bf3;p=mirror_frr.git 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 --- 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