Makefile 908 Bytes
Newer Older
1
2
3
4
TOP=../../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

5
# Original comments relating to GHC 6.4:
6
7
8
9
10
# This test caused a panic in GHC 6.4, but in reality it is user
# error, caused by compiling separate modules in the program using
# different search paths.  GHC gets confused when it can't find a
# module mentioned as a dependency in another interface file.

11
12
13
14
# Update for GHC 6.6:
# This test now succeeds, because A.hi records the fact that B.C
# came from the package test-1.0, so there's no conflict.

15
16
17
18
# If the package format changes, we might have to re-generate pkg.conf
# using the supplied Cabal configuration.

rn.prog006:
19
	@$(TEST_HC) --make -package-name test-1.0 B.C -no-recomp -v0
20
	@sed "s@__IMPORT__@`pwd`@" <pkg.conf.in >pkg.conf
21
22
	@$(TEST_HC) -c -package-conf pkg.conf -package test -no-recomp A.hs -i
	-@$(TEST_HC) -c -package-conf pkg.conf -package test -no-recomp Main.hs