]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixing build issues caused by a nonportable Makefile rule
authorMaria Matejka <mq@ucw.cz>
Mon, 18 Jul 2022 08:26:55 +0000 (10:26 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 18 Jul 2022 08:26:55 +0000 (10:26 +0200)
nest/Makefile

index 0350c3b65e1558aa8f2ad519ed4146ba237dbd21..39617350146084a2b00dbd3f4b2aa33c245e2ae9 100644 (file)
@@ -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)