aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-12-01 11:09:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-12-01 11:09:23 +0200
commitec71f35c671255d1649a3c92f3f089ba0bd00020 (patch)
treee0572b84bdf0dee73c5b33ae2adf75f59dcdd482 /examples
parent899728d08993676b01e722a28f60efb2d076534d (diff)
Save the xsdbin binary path in a pattern-specific variable
Diffstat (limited to 'examples')
-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) $<)