diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2023-02-01 16:15:13 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-02-01 17:31:18 +0100 |
commit | 23f3dd5cfbe8681b4e71c8d7345bdeaafc86e077 (patch) | |
tree | 494d316b342cb185519d5b94125f17c27ce601ed | |
parent | dc4c5f51f83f97100b207136ecfde8ff94e597e6 (diff) |
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
-rw-r--r-- | nest/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nest/Makefile b/nest/Makefile index a2e30ee2..05a2a9c0 100644 --- a/nest/Makefile +++ b/nest/Makefile @@ -3,9 +3,11 @@ obj := $(src-o-files) $(all-daemon) $(cf-local) -$(objdir)/nest/proto-build.c: $(lastword $(MAKEFILE_LIST)) +$(o)proto-build.c: Makefile $(lastword $(MAKEFILE_LIST)) $(objdir)/.dir-stamp $(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_targets := $(tests_targets) $(tests-target-files) |