aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2017-11-07 15:05:53 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-11-21 16:48:05 +0000
commita4e1d9376d955bded322c17c0b218c401b203b02 (patch)
tree72eaeec4953438649ab78cb6f1b39bf9acb24771
parentfd97653ab678b91503c22089981cc679c3d0e54e (diff)
downloadrisu-a4e1d9376d955bded322c17c0b218c401b203b02.tar.gz
configure: allow repeated invocation of configure in build dir
Otherwise a second configure run will totally miss out the setting of BUILD_INC. I made the link -sf as it seemed the easier way around. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-id: 20171107150558.22131-6-alex.bennee@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 1dc527b..c622a5e 100755
--- a/configure
+++ b/configure
@@ -176,10 +176,10 @@ fi
# Are we in a separate build tree? If so, link the Makefile
# so that 'make' works.
-if test ! -e Makefile; then
+if test ! -e Makefile || test -s Makefile; then
echo "linking Makefile..."
BUILD_INC="-I $(pwd)"
- ln -s "${SRCDIR}/Makefile" .
+ ln -sf "${SRCDIR}/Makefile" .
fi
generate_config