From: Maria Matejka Date: Mon, 18 Jul 2022 08:26:55 +0000 (+0200) Subject: Fixing build issues caused by a nonportable Makefile rule X-Git-Tag: v3.0-alpha1~171^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=812edb85e14de1d5fe07a246176b4ed1a2ec0054;p=thirdparty%2Fbird.git Fixing build issues caused by a nonportable Makefile rule --- diff --git a/nest/Makefile b/nest/Makefile index 0350c3b65..396173501 100644 --- a/nest/Makefile +++ b/nest/Makefile @@ -6,7 +6,11 @@ $(call proto-build,dev_build) $(proto-build-c): $(lastword $(MAKEFILE_LIST)) $(E)echo GEN $@ - $(Q)echo "#include \"lib/birdlib.h\"\n$(patsubst %,void %(void);\n,$(PROTO_BUILD)) void protos_build_gen(void) { $(patsubst %, %();\n,$(PROTO_BUILD))}" > $@ + $(Q)echo "#include \"lib/birdlib.h\"" > $@ + $(Q)$(patsubst %,echo 'void %(void);' >> $@;,$(PROTO_BUILD)) + $(Q)echo "void protos_build_gen(void) {" >> $@ + $(Q)$(patsubst %,echo ' %();'>>$@;,$(PROTO_BUILD)) + $(Q)echo "}" >> $@ tests_src := tests_targets := $(tests_targets) $(tests-target-files)