1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00
oh/configure
Ola Jeppsson 47fe8ff923 Add configure script
Generates makefile from template in pwd.
Makes out of tree building simpler.
Configures top_srcdir and top_builddir.

Signed-off-by: Ola Jeppsson <ola@adapteva.com>
2015-07-05 23:30:55 +02:00

13 lines
352 B
Bash
Executable File

#!/bin/bash
if ! which vivado 1>/dev/null; then
echo ERROR: Vivado not in PATH
echo 'Try "source /opt/Xilinx/Vivado/201X.X/settings.sh"'
exit 1
fi
top_srcdir=$(dirname $(readlink -f "$0"))
top_builddir=$(pwd)
sed "s|@top_srcdir@|${top_srcdir}|g;s|@top_builddir@|${top_builddir}|g" \
< $top_srcdir/Makefile.in > $top_builddir/Makefile