The Backpack patch.
[ghc.git] / testsuite / tests / backpack / cabal / bkpcabal02 / Makefile
1 TOP=../../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 SETUP=./Setup -v0
6 CONFIGURE=$(SETUP) configure $(CABAL_MINIMAL_BUILD) --with-ghc='$(TEST_HC)' --ghc-options='$(TEST_HC_OPTS)' --package-db=tmp.d --prefix='$(PWD)/inst'
7
8 bkpcabal02: clean
9 $(MAKE) -s --no-print-directory clean
10 '$(GHC_PKG)' init tmp.d
11 '$(TEST_HC)' -v0 --make Setup
12 cp p/H.hsig.in1 p/H.hsig
13 # typecheck everything
14 $(CONFIGURE)
15 $(SETUP) build
16 $(SETUP) -v1 build
17 cp p/H.hsig.in2 p/H.hsig
18 ! $(SETUP) build
19 ifneq "$(CLEANUP)" ""
20 $(MAKE) -s --no-print-directory clean
21 endif
22
23 clean :
24 $(RM) -r tmp.d inst dist Setup$(exeext)