mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
Nest: Minor cleanup in buildsystem
There ware missing dependencies for proto-build.c generation, which sometimes lead to failed builds, and ignores changes in the set of built protocols. Fix that, and also improve formatting of proto-build.c
This commit is contained in:
parent
dc4c5f51f8
commit
23f3dd5cfb
@ -3,9 +3,11 @@ obj := $(src-o-files)
|
|||||||
$(all-daemon)
|
$(all-daemon)
|
||||||
$(cf-local)
|
$(cf-local)
|
||||||
|
|
||||||
$(objdir)/nest/proto-build.c: $(lastword $(MAKEFILE_LIST))
|
$(o)proto-build.c: Makefile $(lastword $(MAKEFILE_LIST)) $(objdir)/.dir-stamp
|
||||||
$(E)echo GEN $@
|
$(E)echo GEN $@
|
||||||
$(Q)echo "$(patsubst %,void %_build(void); ,$(PROTO_BUILD)) void protos_build_gen(void) { $(patsubst %, %_build(); ,$(PROTO_BUILD))}" > $@
|
$(Q)echo "\n $(patsubst %, void %_build(void);\n,$(PROTO_BUILD))\nvoid protos_build_gen(void) {\n $(patsubst %, %_build();\n,$(PROTO_BUILD))}" > $@
|
||||||
|
|
||||||
|
prepare: $(o)proto-build.c
|
||||||
|
|
||||||
tests_src := a-set_test.c a-path_test.c
|
tests_src := a-set_test.c a-path_test.c
|
||||||
tests_targets := $(tests_targets) $(tests-target-files)
|
tests_targets := $(tests_targets) $(tests-target-files)
|
||||||
|
Loading…
Reference in New Issue
Block a user