Revert "Revert "Revert "Support for multiple signature files in scope."""
[ghc.git] / testsuite / tests / driver / sigof01 / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 # -fforce-recomp makes lots of driver tests trivially pass, so we
6 # filter it out from $(TEST_HC_OPTS).
7 TEST_HC_OPTS_NO_RECOMP = $(filter-out -fforce-recomp,$(TEST_HC_OPTS))
8
9 S01_OPTS=$(TEST_HC_OPTS_NO_RECOMP) -outputdir tmp_sigof01 -i -itmp_sigof01
10 sigof01:
11 rm -rf tmp_sigof01
12 mkdir tmp_sigof01
13 '$(TEST_HC)' $(S01_OPTS) -c A.hs
14 '$(TEST_HC)' $(S01_OPTS) -c B.hsig -sig-of "B is main:A"
15 '$(TEST_HC)' $(S01_OPTS) -c Main.hs
16 '$(TEST_HC)' $(S01_OPTS) tmp_sigof01/A.o tmp_sigof01/Main.o -o tmp_sigof01/Main
17 tmp_sigof01/Main
18
19 sigof01m:
20 rm -rf tmp_sigof01m
21 mkdir tmp_sigof01m
22 '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) -outputdir tmp_sigof01m --make Main.hs -sig-of "B is main:A" -o tmp_sigof01m/Main
23 tmp_sigof01m/Main