From 14814c23fca2e7998cc18f8ff7a2e521d20967c7 Mon Sep 17 00:00:00 2001 From: kili Date: Sat, 11 May 2013 22:13:30 +0000 Subject: [PATCH] Let the bootstrap target fail early if autoconf-2.61 or automake-1.4 aren't installed. --- lang/ghc/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile index 2e4e67a75e3..20b4219ede7 100644 --- a/lang/ghc/Makefile +++ b/lang/ghc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.94 2013/05/09 05:54:31 kili Exp $ +# $OpenBSD: Makefile,v 1.95 2013/05/11 22:13:30 kili Exp $ COMMENT-main = compiler for the functional language Haskell COMMENT-doc = documentation for GHC @@ -179,6 +179,14 @@ BOOTSTRAP_DATE = 20120917 # can be used for bootstrapping. # Note: this needs autoconf-2.61 as an additional dependency. bootstrap: patch + @if [ ! -x ${LOCALBASE}/bin/autoconf-2.61 ]; then \ + echo Please install autoconf-2.61.; \ + false; \ + fi + @if [ ! -x ${LOCALBASE}/bin/automake-1.4 ]; then \ + echo Please install automake-1.4.; \ + false; \ + fi echo HSCOLOUR_SRCS=NO > ${WRKSRC}/mk/build.mk echo GhcLibHcOpts=-O -fasm >> ${WRKSRC}/mk/build.mk echo GhcStage1HcOpts=-O -fasm >> ${WRKSRC}/mk/build.mk