From 490cac47ad12b8a68b5bdd887ce57ed1df82a2f4 Mon Sep 17 00:00:00 2001 From: PHO Date: Fri, 15 Feb 2013 09:19:40 +0900 Subject: [PATCH] Tidy-up bootstrapping rules. --- bootstrap.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bootstrap.mk b/bootstrap.mk index 5f48c44..e178a9d 100644 --- a/bootstrap.mk +++ b/bootstrap.mk @@ -71,9 +71,14 @@ pre-configure: bootstrap: @${ERROR_MSG} "You have already configured the package in a way\ that building bootstrapping compiler is impossible." - @${FAIL_MSG} "Run \"${MAKE} clean\" first." + @${FAIL_MSG} "Please run \"${MAKE} clean patch\" first." + +.elif !exists(${WRKDIR}/${DISTNAME}/rts/ghc.mk.orig) +bootstrap: + @${FAIL_MSG} "Please run \"${MAKE} patch\" first." + .else -bootstrap: patch ${WRKDIR}/${BOOT_ARCHIVE} +bootstrap: ${WRKDIR}/${BOOT_ARCHIVE} @${PHASE_MSG} "Done creating" ${WRKDIR}/${BOOT_ARCHIVE} ${WRKDIR}/lndir: -- 2.40.0