summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/mod175/Makefile
blob: e2c8b66893cfc5a57458e5127976cd830d1cbbf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

clean:
	rm -f *.o
	rm -f *.hi
	rm -f test test2

# Test for trac bug #437 (Test2 needs to be recompiled in the second GHC
# invocation as the main-is flag now applies to it).

mod175:
	$(MAKE) -s --no-print-directory clean
	'$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make -main-is Test.main  Test.hs  -o test
	'$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make -main-is Test2.main Test2.hs -o test2
	./test
	./test2