summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/T3007/Makefile
blob: 09db27a38f5e2f04d5690749efb89a722e6cdcf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

clean:
	rm -f A/Setup A/Setup.o A/Setup.hi
	rm -f B/Setup B/Setup.o B/Setup.hi
	rm -rf A/dist B/dist
	rm -rf package.conf

T3007:
	$(MAKE) -s --no-print-directory clean
	'$(GHC_PKG)' init package.conf
	cd A && '$(TEST_HC)' -v0 --make Setup
	cd A && ./Setup configure -v0 --with-compiler='$(TEST_HC)' --ghc-pkg-option=--global-package-db=../package.conf --ghc-option=-package-db../package.conf
	cd A && ./Setup build -v0
	cd A && ./Setup register --inplace -v0
	cd B && '$(TEST_HC)' -v0 --make Setup
	cd B && ./Setup configure -v0 --with-compiler='$(TEST_HC)' --ghc-pkg-option=--global-package-db=../package.conf --ghc-option=-package-db../package.conf
	cd B && ./Setup build -v0