aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/cxx/tree/embedded/makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/cxx/tree/embedded/makefile b/examples/cxx/tree/embedded/makefile
index 633ca60..58fa795 100644
--- a/examples/cxx/tree/embedded/makefile
+++ b/examples/cxx/tree/embedded/makefile
@@ -45,7 +45,8 @@ $(gen): $(out_root)/xsd/xsd
genf += $(xsd:.xsd=-schema.hxx) $(xsd:.xsd=-schema.cxx)
-.PRECIOUS: $(out_base)/%-schema.hxx $(out_base)/%-schema.cxx
+.PRECIOUS: $(out_base)/%-schema.hxx $(out_base)/%-schema.cxx
+$(out_base)/%: xsdbin := $(xsdbin)
$(out_base)/%-schema.hxx $(out_base)/%-schema.cxx: $(src_base)/%.xsd $(xsdbin)
$(call message,xsdbin $<,$(xsdbin) --output-dir $(out_base) $<)