summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2016-12-09 17:47:04 -0600
committerPatrick Williams <patrick@stwcx.xyz>2017-01-18 09:41:02 -0600
commitad2310e91ec3001adb5f2c1c4d4906f670d9fd1a (patch)
treeb710c1e7f68e24d13962f420708343812638eed0
parent0be05ee21426bdb5e77337560e99324d0a2f3301 (diff)
downloadphosphor-dbus-interfaces-ad2310e91ec3001adb5f2c1c4d4906f670d9fd1a.zip
phosphor-dbus-interfaces-ad2310e91ec3001adb5f2c1c4d4906f670d9fd1a.tar.gz
build: support out of tree builds
Change-Id: Ibf07f1056567eb25106b8039c14e54411243d831 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
-rw-r--r--configure.ac2
-rwxr-xr-xgenerate_makefile.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index bba445b..67d7130 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,6 +34,6 @@ LT_LIB_DLLOAD
# Create configured output
AC_CONFIG_FILES([Makefile.interfaces],
- [./generate_makefile.sh > Makefile.interfaces])
+ [${srcdir}/generate_makefile.sh ${srcdir} > Makefile.interfaces])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
diff --git a/generate_makefile.sh b/generate_makefile.sh
index e0f0511..4816919 100755
--- a/generate_makefile.sh
+++ b/generate_makefile.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+cd $1
+
toplevel_dirs=xyz
interfaces=`find $toplevel_dirs -name "*.interface.yaml"`
OpenPOWER on IntegriCloud