Fix recompilation avoidance bug for implementor of hsig.
[ghc.git] / testsuite / tests / backpack / cabal / bkpcabal06 / Makefile
1 TOP=../../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 SETUP='$(PWD)/Setup' -v0
6 CONFIGURE=$(SETUP) configure $(CABAL_MINIMAL_BUILD) --with-ghc='$(TEST_HC)' --ghc-options='$(TEST_HC_OPTS)' --package-db='$(PWD)/tmp.d' --prefix='$(PWD)/inst'
7
8 # This test checks if recompilation works correctly when we change an
9 # hsig file which modifies the set of exported instances. Makes sure
10 # we track dependencies on instances from signatures correctly.
11
12 bkpcabal06: clean
13 $(MAKE) -s --no-print-directory clean
14 '$(GHC_PKG)' init tmp.d
15 '$(TEST_HC)' -v0 --make Setup
16 $(CONFIGURE)
17 cp impl/P.hs.in1 impl/P.hs
18 $(SETUP) build
19 sleep 1
20 cp impl/P.hs.in2 impl/P.hs
21 ! $(SETUP) build
22 ifneq "$(CLEANUP)" ""
23 $(MAKE) -s --no-print-directory clean
24 endif
25
26 clean :
27 $(RM) -rf tmp.d inst dist Setup$(exeext) impl/P.hs