summaryrefslogtreecommitdiff
path: root/nest/Makefile
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-04-14 11:37:23 +0200
committerMaria Matejka <mq@ucw.cz>2023-04-14 11:37:23 +0200
commiteb978f3a8357e53fcfeede1caf355e80d782ca6a (patch)
tree511b3f1701c7f316fd472d37a3e392156aa5c3f0 /nest/Makefile
parenta1fcd1c57a06baa99c38af4263f4845c9dba466e (diff)
parent0851fcde651301a886fefc574a4f739bf68119b9 (diff)
Merge commit '0851fcde' into thread-next-iface
Diffstat (limited to 'nest/Makefile')
-rw-r--r--nest/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/nest/Makefile b/nest/Makefile
index 5b27da0c..1a71c2fb 100644
--- a/nest/Makefile
+++ b/nest/Makefile
@@ -3,7 +3,7 @@ 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 "#include \"lib/birdlib.h\"" > $@
$(Q)$(patsubst %,echo 'void %_build(void);' >> $@;,$(PROTO_BUILD))
@@ -11,6 +11,8 @@ $(objdir)/nest/proto-build.c: $(lastword $(MAKEFILE_LIST))
$(Q)$(patsubst %,echo ' %_build();'>>$@;,$(PROTO_BUILD))
$(Q)echo "}" >> $@
+prepare: $(o)proto-build.c
+
tests_src :=
tests_targets := $(tests_targets) $(tests-target-files)
tests_objs := $(tests_objs) $(src-o-files)