summaryrefslogtreecommitdiff
path: root/nest/Makefile
diff options
context:
space:
mode:
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)