[Pkg-haskell-commits] [SCM] haskell-testpack branch, master, updated. debian/1.0.2-1-4-gb0d6b36
John Goerzen
jgoerzen at complete.org
Fri Apr 23 14:59:00 UTC 2010
The following commit has been merged in the master branch:
commit b52e464c3fbb17fba3cb43bf945bbfacabd77926
Author: John Goerzen <jgoerzen at complete.org>
Date: Fri May 13 01:57:17 2005 +0100
Fixed test building
Lost the optimization of compiling only once, but at least it works.
diff --git a/Makefile b/Makefile
index ef58115..2505187 100644
--- a/Makefile
+++ b/Makefile
@@ -20,12 +20,13 @@ SOURCES := $(wildcard MissingH/*.hs) \
$(wildcard MissingH/*/*/*.hs)
LHSSOURCES := $(wildcard MissingH/*/*.lhs) \
$(wildcard MissingH/*/*/*.lhs)
+TESTSOURCES := $(shell find testsrc -name "*.hs")
O1 := $(SOURCES:.hs=.o) $(LHSSOURCES)
OBJS := $(O1:.lhs=.o)
LHSCONVSOURCES := $(patsubst %.lhs,doctmp/%.hs,$(LHSSOURCES))
HUGSCONVSOURCES := $(patsubst %.hs,dist/build/%.hs,$(SOURCES))
UNLIT ?= $(shell ghc --print-libdir)/unlit
-GHCPARMS := -fallow-overlapping-instances -fallow-undecidable-instances -fglasgow-exts
+GHCPARMS := -fallow-overlapping-instances -fallow-undecidable-instances -fglasgow-exts -cpp
.PHONY: all hugsbuild
all: setup # GHC build
@@ -72,7 +73,7 @@ local-pkg: all
echo "]" >> local-pkg
testsrc/runtests: all $(wildcard testsrc/*.hs) $(wildcard testsrc/*/*.hs) $(wildcard testsrc/*/*/*.hs)
- cd testsrc && ghc --make -package HUnit $(GHCPARMS) -o runtests -L../dist/build -i../dist/build ../dist/build/libHS*.a runtests.hs
+ cd testsrc && ghc --make -package HUnit $(GHCPARMS) -o runtests -i../dist/build:.. runtests.hs
test-ghc6: testsrc/runtests
testsrc/runtests
--
haskell-testpack
More information about the Pkg-haskell-commits
mailing list