mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 18:54:59 +00:00
build: consistently mkdir -p output for redirect
When running the build in a separate build directory, redirecting output into a file can error out if the directory does not exist yet. Some places already had `mkdir -p` calls, but not all. Make all occurences of this consistently use `@$(MKDIR_P)`. (Extension of PR #12575 to catch more places.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
e784f789fb
commit
d173381edc
@ -567,6 +567,7 @@ rt_enabled += --enabled zebra
|
||||
endif
|
||||
|
||||
lib/route_types.h: $(top_srcdir)/lib/route_types.txt $(top_srcdir)/lib/route_types.pl
|
||||
@$(MKDIR_P) lib
|
||||
$(PERL) $(top_srcdir)/lib/route_types.pl $(rt_enabled) < $(top_srcdir)/lib/route_types.txt > $@
|
||||
DISTCLEANFILES += lib/route_types.h
|
||||
|
||||
@ -581,6 +582,7 @@ PHONY_GITVERSION=lib/gitversion.h.tmp
|
||||
.SILENT: lib/gitversion.h lib/gitversion.h.tmp
|
||||
GITH=lib/gitversion.h
|
||||
lib/gitversion.h.tmp: $(top_srcdir)/.git
|
||||
@$(MKDIR_P) lib
|
||||
$(PERL) $(top_srcdir)/lib/gitversion.pl $(top_srcdir) > ${GITH}.tmp
|
||||
lib/gitversion.h: lib/gitversion.h.tmp
|
||||
{ test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp ${GITH}.tmp ${GITH}
|
||||
|
@ -21,7 +21,7 @@ EXTRA_DIST += \
|
||||
# end
|
||||
|
||||
tests/isisd/test_fuzz_isis_tlv_tests.h: $(top_srcdir)/tests/isisd/test_fuzz_isis_tlv_tests.h.gz
|
||||
@mkdir -p tests/isisd
|
||||
@$(MKDIR_P) tests/isisd
|
||||
$(AM_V_GEN)gzip -d < $(top_srcdir)/tests/isisd/test_fuzz_isis_tlv_tests.h.gz > "$@"
|
||||
CLEANFILES += tests/isisd/test_fuzz_isis_tlv_tests.h
|
||||
|
||||
|
@ -93,7 +93,7 @@ tests_lib_cli_test_commands_LDADD = $(ALL_TESTS_LDADD)
|
||||
nodist_tests_lib_cli_test_commands_SOURCES = tests/lib/cli/test_commands_defun.c
|
||||
tests_lib_cli_test_commands_SOURCES = tests/lib/cli/test_commands.c tests/helpers/c/prng.c
|
||||
tests/lib/cli/test_commands_defun.c: vtysh/vtysh_cmd.c
|
||||
@mkdir -p tests/lib/cli
|
||||
@$(MKDIR_P) tests/lib/cli
|
||||
$(AM_V_GEN)sed \
|
||||
-e 's%"vtysh/vtysh\.h"%"tests/helpers/c/tests.h"%' \
|
||||
-e 's/vtysh_init_cmd/test_init_cmd/' \
|
||||
|
@ -37,5 +37,5 @@ $(vtysh_vtysh_OBJECTS): vtysh/vtysh_daemons.h
|
||||
|
||||
CLEANFILES += vtysh/vtysh_daemons.h
|
||||
vtysh/vtysh_daemons.h:
|
||||
mkdir -p vtysh
|
||||
@$(MKDIR_P) vtysh
|
||||
$(PERL) $(top_srcdir)/vtysh/daemons.pl $(vtysh_daemons) > vtysh/vtysh_daemons.h
|
||||
|
Loading…
Reference in New Issue
Block a user