Testsuite: pass '-s --no-print-directory' to MAKE
[ghc.git] / testsuite / tests / typecheck / bug1465 / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 LOCAL_PKGCONF=local.package.conf
6
7 PKG=bug1465
8
9 clean:
10 rm -f v1/setup v1/Setup.o v1/Setup.hi
11 rm -f v2/setup v2/Setup.o v2/Setup.hi
12 rm -rf v1/dist v2/dist
13 rm -f *.o *.hi
14 rm -rf $(LOCAL_PKGCONF)
15
16 bug1465:
17 $(MAKE) -s --no-print-directory clean
18 $(MAKE) -s --no-print-directory prep
19 '$(TEST_HC)' $(TEST_HC_OPTS) -package-db $(LOCAL_PKGCONF) -c C.hs || exit 0
20 $(MAKE) -s --no-print-directory clean
21
22 prep:
23 '$(GHC_PKG)' init $(LOCAL_PKGCONF)
24 $(MAKE) -s --no-print-directory prep.v1
25 $(MAKE) -s --no-print-directory prep.v2
26 '$(TEST_HC)' $(TEST_HC_OPTS) -package-db $(LOCAL_PKGCONF) -c -package $(PKG)-1.0 B1.hs
27 '$(TEST_HC)' $(TEST_HC_OPTS) -package-db $(LOCAL_PKGCONF) -c -package $(PKG)-2.0 B2.hs
28
29 prep.%:
30 cd $* && '$(TEST_HC)' -v0 --make -o setup Setup.hs
31 cd $* && ./setup configure $(CABAL_MINIMAL_BUILD) -v0 --with-compiler='$(TEST_HC)' --with-ghc-pkg='$(GHC_PKG)' --ghc-options='$(TEST_HC_OPTS)' --package-db ../$(LOCAL_PKGCONF)
32 cd $* && ./setup build -v0
33 cd $* && ./setup register -v0 --inplace