diff options
author | Maria Matejka <mq@ucw.cz> | 2022-08-18 18:32:33 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-08-18 22:07:30 +0200 |
commit | dc28c6ed1c6643ec19d2e8f94f92955f58c357a7 (patch) | |
tree | ee7320d1722e61f19645410b66841d0133e2ddda /nest/Makefile | |
parent | bc4ad83dacb07ad6bb454b75d78daa2f9c953088 (diff) |
Simplified the protocol hookup code in Makefiles
Diffstat (limited to 'nest/Makefile')
-rw-r--r-- | nest/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nest/Makefile b/nest/Makefile index 7d451ba4..a2e30ee2 100644 --- a/nest/Makefile +++ b/nest/Makefile @@ -2,11 +2,10 @@ src := a-path.c a-set.c cli.c cmds.c iface.c locks.c neighbor.c password.c proto obj := $(src-o-files) $(all-daemon) $(cf-local) -$(call proto-build,dev_build) -$(proto-build-c): $(lastword $(MAKEFILE_LIST)) +$(objdir)/nest/proto-build.c: $(lastword $(MAKEFILE_LIST)) $(E)echo GEN $@ - $(Q)echo "$(patsubst %,void %(void); ,$(PROTO_BUILD)) void protos_build_gen(void) { $(patsubst %, %(); ,$(PROTO_BUILD))}" > $@ + $(Q)echo "$(patsubst %,void %_build(void); ,$(PROTO_BUILD)) void protos_build_gen(void) { $(patsubst %, %_build(); ,$(PROTO_BUILD))}" > $@ tests_src := a-set_test.c a-path_test.c tests_targets := $(tests_targets) $(tests-target-files) |