summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2013-03-20 17:38:04 -0500
committerAaron Watry <awatry@gmail.com>2013-03-20 17:38:04 -0500
commita414248bded3840bc4b2357362e287de0ff0875e (patch)
tree84c45567a857019f23881a02250025d994d2bae6
parentec666a51cda40f8660bf95c174bfcdc765963228 (diff)
configure: fix out-of-source build
From: Niels Ole Salscheider <niels_ole@salscheider-online.de>
-rwxr-xr-xconfigure.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index d861c24..2421f06 100755
--- a/configure.py
+++ b/configure.py
@@ -177,9 +177,10 @@ install_cmd = ' && '.join(['mkdir -p $(DESTDIR)/%(dst)s && cp -r %(src)s $(DESTD
{'src': file,
'dst': libexecdir}
for (file, dest) in install_files_bc])
-install_cmd = ' && '.join(['%(old)s && mkdir -p $(DESTDIR)/%(dst)s && cp -r generic/include/clc $(DESTDIR)/%(dst)s' %
+install_cmd = ' && '.join(['%(old)s && mkdir -p $(DESTDIR)/%(dst)s && cp -r %(srcdir)s/generic/include/clc $(DESTDIR)/%(dst)s' %
{'old': install_cmd,
- 'dst': includedir}])
+ 'dst': includedir,
+ 'srcdir': srcdir}])
install_cmd = ' && '.join(['%(old)s && mkdir -p $(DESTDIR)/%(dst)s && cp -r libclc.pc $(DESTDIR)/%(dst)s' %
{'old': install_cmd,
'dst': pkgconfigdir}])