From 9f45f2408f48a6fd06d727d81616e35d14f89b0d Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Tue, 15 Feb 2000 00:42:03 +0100 Subject: [PATCH] Fixed problem with an absolute path as BUILDDIR. Rev: Makefile:1.25 --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3a551e5689..9e3da08d5b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.24 2000/01/13 13:09:14 noring Exp $ +# $Id: Makefile,v 1.25 2000/02/14 23:42:03 mast Exp $ # # Meta Makefile # @@ -40,10 +40,11 @@ force_configure: builddir: @builddir="$(BUILDDIR)"; \ { \ - IFS='/'; dir=""; \ + IFS='/'; \ + dir=`echo "$$builddir" | sed -e 's|[^/].*||'`; \ for d in $$builddir; do \ dir="$$dir$$d"; \ - test -z "$$dir" -o -d "$$dir" || mkdir "$$dir" || exit 1; \ + test x"$$dir" = x -o -d "$$dir" || mkdir "$$dir" || exit 1; \ dir="$$dir/"; \ done; \ } -- GitLab