aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-27 18:06:23 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-27 18:06:23 +0000
commitc49a9c4076f0a688424c71d1f81307ce204763c6 (patch)
treef1d37378e41bc7d8602ab788bbb1e4f6c3af84f3 /Makefile.in
parent01ec9588499bac5f5c6b0180f4b4fa931d4617f9 (diff)
downloadgdb-c49a9c4076f0a688424c71d1f81307ce204763c6.zip
gdb-c49a9c4076f0a688424c71d1f81307ce204763c6.tar.gz
gdb-c49a9c4076f0a688424c71d1f81307ce204763c6.tar.bz2
* Makefile.in (install-dirs): Deal with a prefix like /gnu;
its parent is '/' not ''.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 1893df9..9daf3f4 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -882,7 +882,7 @@ MAKEDIRS= \
install-dirs:
@for i in $(MAKEDIRS) ; do \
echo Making $$i... ; \
- parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
+ parent=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$@/@'`; \
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
if [ ! -d $$i ] ; then \
if mkdir $$i ; then \