$OpenBSD: patch-binutils-2_7_Makefile_in,v 1.1 2001/08/30 22:16:42 pvalchev Exp $
--- ../binutils-2.7/Makefile.in.orig	Wed Aug 22 13:06:48 2001
+++ ../binutils-2.7/Makefile.in	Wed Aug 22 13:06:56 2001
@@ -903,7 +903,7 @@ gcc-no-fixedincludes:
 	@if [ -f ./gcc/Makefile ]; then \
 	  rm -rf gcc/tmp-include; \
 	  mv gcc/include gcc/tmp-include 2>/dev/null; \
-	  mkdir gcc/include; \
+	  mkdir -p gcc/include; \
 	  cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
 	  touch gcc/stmp-fixinc gcc/include/fixed; \
 	  rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
@@ -986,7 +986,7 @@ $(CONFIGURE_TARGET_MODULES):
 	  true; \
 	elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
 	  if [ -d $(srcdir)/$${dir} ]; then \
-	    [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
+	    [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir -p $(TARGET_SUBDIR)/$${dir};\
 	    r=`pwd`; export r; \
 	    srcroot=`cd $(srcdir); pwd`; export srcroot; \
 	    $(SET_LIB_PATH) \
@@ -1295,9 +1295,9 @@ install-dirs:
 	@for i in $(MAKEDIRS) ; do \
 		echo Making $$i... ; \
 		parent=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \
-		if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
+		if [ -d $$parent ] ; then true ; else mkdir -p $$parent ; fi ; \
 		if [ ! -d $$i ] ; then \
-			if mkdir $$i ; then \
+			if mkdir -p $$i ; then \
 				true ; \
 			else \
 				exit 1 ; \
@@ -1382,7 +1382,7 @@ taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
 	  || $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \
 	    CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
 	# Make links, and run "make diststuff" or "make info" when needed.
-	rm -rf proto-toplev ; mkdir proto-toplev
+	rm -rf proto-toplev ; mkdir -p proto-toplev
 	set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
 	for d in $$dirs ; do \
 	  if [ -d $$d ]; then \
@@ -1402,7 +1402,7 @@ taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
 	cd etc ; $(MAKE) info
 	$(MAKE) distclean
 	#
-	mkdir proto-toplev/etc
+	mkdir -p proto-toplev/etc
 	(cd proto-toplev/etc; \
 	 for i in $(ETC_SUPPORT); do \
 		ln -s ../../etc/$$i . ; \
@@ -1413,12 +1413,12 @@ taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
 	sed -e '/^host_tools=/s/texinfo //' \
 	    <configure.in >proto-toplev/configure.in
 	#
-	mkdir proto-toplev/texinfo
+	mkdir -p proto-toplev/texinfo
 	ln -s ../../texinfo/texinfo.tex		proto-toplev/texinfo/
 	ln -s ../../texinfo/gpl.texinfo		proto-toplev/texinfo/
 	ln -s ../../texinfo/lgpl.texinfo	proto-toplev/texinfo/
 	if test -r texinfo/util/tex3patch ; then \
-	  mkdir proto-toplev/texinfo/util && \
+	  mkdir -p proto-toplev/texinfo/util && \
 	  ln -s ../../../texinfo/util/tex3patch	proto-toplev/texinfo/util ; \
 	else true; fi
 	chmod og=u `find . -print`
