Allow reusing temporary object files generated by GHCi by writing to -odir in case...
[ghc.git] / testsuite / tests / ghci / T16670 / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 clean:
6 $(RM) -rf my-odir
7
8 T16670_unboxed:
9 @echo "~~~~~~~~ testing T16670_unboxed"
10 $(MAKE) -s --no-print-directory clean
11 mkdir my-odir
12 echo ":load T16670_unboxed.hs" | "$(TEST_HC)" $(TEST_HC_OPTS_INTERACTIVE) \
13 -v0 -fwrite-interface -odir my-odir
14 find . -name T16670_unboxed.o
15 test -f my-odir/T16670_unboxed.o
16
17 T16670_th:
18 @echo "~~~~~~~~ testing T16670_th"
19 $(MAKE) -s --no-print-directory clean
20 mkdir my-odir
21 echo ":load T16670_th.hs" | "$(TEST_HC)" $(TEST_HC_OPTS_INTERACTIVE) \
22 -v0 -fno-code -fwrite-interface -odir my-odir
23 find . -name T16670_th.o
24 test -f my-odir/T16670_th.o