$OpenBSD: patch-Makefile_imake-pure,v 1.2 2012/10/28 11:05:45 sthen Exp $
--- Makefile.imake-pure.orig	Mon Oct 22 15:50:39 2012
+++ Makefile.imake-pure	Wed Oct 24 21:18:52 2012
@@ -99,7 +99,12 @@ World:
 # This is just a sequence of bootstrapping steps we have to do.
 # The steps are listed as separate targets so clearmake can wink in
 # the Makefile.proto files.
-Makefile.boot: imake.proto $(DEPENDSRC)/Makefile.proto depend.bootstrap $(IMAKESRC)/Makefile.proto imake.bootstrap
+#Makefile.boot: imake.proto $(DEPENDSRC)/Makefile.proto depend.bootstrap $(IMAKESRC)/Makefile.proto imake.bootstrap
+Makefile.boot:
+	-@if [ -f xmakefile ]; then set -x; \
+	$(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak; \
+	else exit 0; fi
+	$(MAKE) $(MFLAGS) xmakefile
 
 imake.proto:
 	cd $(IMAKESRC) && $(MAKE) $(FLAGS)
