From 2d6586a6bcfa2a97b0370dd5a6c0df18ba93641f Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Wed, 31 May 2017 19:43:35 -0400 Subject: build: Correct out of tree build bugs Change-Id: Id6e14414c6f15c11d1476039e3781d719f693d21 Signed-off-by: Brad Bishop --- configure.ac | 2 +- src/Makefile.am | 2 +- src/test/Makefile.am | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index 15abf12..5e03b54 100644 --- a/configure.ac +++ b/configure.ac @@ -51,7 +51,7 @@ AS_IF([test "x$enable_oe_sdk" == "xyes"], ) AC_ARG_VAR(YAML_PATH, [The path to the yaml config files.]) -AS_IF([test "x$YAML_PATH" == "x"], [YAML_PATH="$srcdir/example"]) +AS_IF([test "x$YAML_PATH" == "x"], [YAML_PATH="\${top_srcdir}/src/example"]) AC_CONFIG_FILES([Makefile src/Makefile src/test/Makefile]) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index 0380f6c..c886d3a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -33,7 +33,7 @@ generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES) $(AM_V_GEN)$(PYTHON) ${PDMGEN} \ -t generated.mako.hpp \ -p "${TEMPLATESEARCH}" \ - -d ${srcdir}/example \ + -d $(YAML_PATH) \ -o ${builddir}/$@ \ generate-cpp diff --git a/src/test/Makefile.am b/src/test/Makefile.am index 324eec7..aaae1ff 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -34,7 +34,7 @@ pathgentest.hpp: $(PDMGEN) $(PATH_TEST_GEN_DEPS) $(AM_V_GEN) $(PYTHON) $(PDMGEN) \ -t pathgentest.mako.hpp \ -p "${TEMPLATESEARCH}" \ - -d yaml/pathgentest \ + -d ${srcdir}/yaml/pathgentest \ -o $(builddir)/$@ \ generate-cpp @@ -59,7 +59,7 @@ propertygentest.hpp: $(PROPERTY_TEST_GEN_DEPS) $(AM_V_GEN) $(PYTHON) $(PDMGEN) \ -t propertygentest.mako.hpp \ -p "${TEMPLATESEARCH}" \ - -d yaml/propertygentest \ + -d ${srcdir}/yaml/propertygentest \ -o $(builddir)/$@ \ generate-cpp @@ -84,7 +84,7 @@ propertywatchgentest.hpp: $(PROPERTY_WATCH_TEST_GEN_DEPS) $(AM_V_GEN) $(PYTHON) $(PDMGEN) \ -t propertywatchgentest.mako.hpp \ -p "${TEMPLATESEARCH}" \ - -d yaml/propertywatchgentest \ + -d ${srcdir}/yaml/propertywatchgentest \ -o $(builddir)/$@ \ generate-cpp @@ -126,7 +126,7 @@ callbackgentest.hpp: $(CALLBACK_TEST_GEN_DEPS) $(AM_V_GEN) $(PYTHON) $(PDMGEN) \ -t callbackgentest.mako.hpp \ -p "${TEMPLATESEARCH}" \ - -d yaml/callbackgentest \ + -d ${srcdir}/yaml/callbackgentest \ -o $(builddir)/$@ \ generate-cpp @@ -151,7 +151,7 @@ callbackgroupgentest.hpp: $(CALLBACKGROUP_TEST_GEN_DEPS) $(AM_V_GEN) $(PYTHON) $(PDMGEN) \ -t callbackgroupgentest.mako.hpp \ -p "${TEMPLATESEARCH}" \ - -d yaml/callbackgroupgentest \ + -d ${srcdir}/yaml/callbackgroupgentest \ -o $(builddir)/$@ \ generate-cpp @@ -176,6 +176,6 @@ conditiongentest.hpp: $(CONDITION_TEST_GEN_DEPS) $(AM_V_GEN) $(PYTHON) $(PDMGEN) \ -t conditiongentest.mako.hpp \ -p "${TEMPLATESEARCH}" \ - -d yaml/conditiongentest \ + -d ${srcdir}/yaml/conditiongentest \ -o $(builddir)/$@ \ generate-cpp -- cgit v1.2.1