openbsd-ports/lang/ghc/patches/patch-Makefile
dons cd5fda6e80 Update ghc to 6.2.2.
Adds support for ghci. More stable foreign function interface.

Just i386 at the moment.

ok sturm@ pvalchev@
2005-02-14 01:26:56 +00:00

24 lines
934 B
Plaintext

$OpenBSD: patch-Makefile,v 1.5 2005/02/14 01:26:56 dons Exp $
Add a "check" target to make regress work nicely.
--- Makefile.orig Wed Sep 22 03:34:41 2004
+++ Makefile Wed Feb 2 10:55:40 2005
@@ -422,3 +422,17 @@ include $(TOP)/mk/target.mk
# -----------------------------------------------------------------------------
+check::
+ ( cd testsuite/tests/ghc-regress ; $(MAKE) $(MFLAGS) )
+ @(sed 's/ started at .*$$//' actual.result > actual.result_)
+ @(if cmp -s `uname -m`.expected.result actual.result_ ; then \
+ echo "All is good!" ; \
+ else \
+ echo ;\
+ echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@";\
+ echo "Unexpected regress results!" ;\
+ echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@";\
+ echo ;\
+ echo "here is a diff:" ;\
+ diff -u `uname -m`.expected.result actual.result_ ;\
+ fi ; exit 0 )