Fix Mac OS X timestamp resolution bug.
[ghc.git] / testsuite / tests / backpack / cabal / bkpcabal05 / 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 bkpcabal05: clean
13 $(MAKE) -s --no-print-directory clean
14 '$(GHC_PKG)' init tmp.d
15 '$(TEST_HC)' -v0 --make Setup
16 $(CONFIGURE)
17 cp A.hsig.in1 A.hsig
18 # typecheck
19 $(SETUP) build
20 sleep 1
21 cp A.hsig.in2 A.hsig
22 ! $(SETUP) build
23 ifneq "$(CLEANUP)" ""
24 $(MAKE) -s --no-print-directory clean
25 endif
26
27 clean :
28 $(RM) -rf tmp.d inst dist Setup$(exeext) A.hsig