Manuel M T Chakravarty 838f8c0aca Adapt to work with GHC 6.12
- Adapted the package to work with GHC 6.12
- Plugins that depend on the old base3 are currently
  not correctly loaded as the plugin loaded misses
  the dependence on syb (leading to unresolved symbols)
- Cleaned up most of the testsuite (there are still
  some outstanding failures, of which only one
  demonstrates a bug in the plugins library as far
  as I can see — see previous bullet point)
- Cleaned out a little cruft (but more could be done)
2010-09-22 05:10:19 +00:00

31 lines
751 B
Makefile

GHCFLAGS= -O0 $(GHC_EXTRA_OPTS)
PKGFLAGS= -package posix
PKGFLAGS+= -package plugins
all: build
build:
@$(GHC) $(GHCFLAGS) $(PKGFLAGS) $(EXTRAFLAGS) Main.hs -o runplugs
include ../../../config.mk
check: build
@(if [ -f "expected" ] ;\
then \
actual_out="/tmp/hs-plugins-actual.out.$$$$" ;\
diff_out="/tmp/hs-plugins.diff.$$$$" ;\
cat test.in | ./runplugs > $$actual_out 2>&1 || true ;\
diff -u expected $$actual_out > $$diff_out || true ;\
if [ -s "$$diff_out" ] ; then \
echo "failed with:" ;\
cat "$$diff_out" | sed '1,3d' ;\
else \
echo "ok." ;\
fi ;\
rm $$actual_out ;\
else \
cat test.in | ./runplugs 2>&1 || true ;\
fi)
clean:
rm -rf *.hi *.o *~ *.dep ./runplugs
include ../../../config.mk