summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/cabal/cabal04/Makefile
blob: 3c6a73cb1b10099f473a2ddd2701f3a8ddc2c144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
TOP=../../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

SETUP=./Setup -v0

# This tests that we can build a Cabal package that uses TH with both
# profiling and dynamic linking. (#3604)

cabal04:
	$(MAKE) clean
	'$(TEST_HC)' -v0 --make Setup
	$(SETUP) clean
	$(SETUP) configure --with-ghc='$(TEST_HC)' --ghc-options='$(TEST_HC_OPTS)' $(PROF) $(DYN)
	$(SETUP) build 2> err
	! grep -v "Creating library file" err
ifneq "$(CLEANUP)" ""
	$(MAKE) clean
endif

clean :
	$(RM) -r *.o *.hi dist Setup$(exeext) err