* Makefile (RUNTEST_PL, test-multi-local): Remove, now that
[mono.git] / mcs / errors / Makefile
1 thisdir = errors
2 SUBDIRS = 
3 include ../build/rules.make
4
5 ifeq (default, $(PROFILE))
6 # force this, we don't case if CSC is broken. This also
7 # means we can use --options, yay.
8
9 MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
10 endif
11
12 GENERICS_COMPILE = $(CSCOMPILE) /target:library
13
14 DISTFILES = \
15         CONTRIBUTORS_README     \
16         README.tests            \
17         errors.txt              \
18         do-tests.pl             \
19         $(wildcard *.cs)        \
20         $(wildcard *.inc)       \
21         $(wildcard *.pub)       \
22         $(wildcard *.response)  \
23         mcs-expect-no-error mcs-expect-wrong-error mcs-ignore-tests \
24         gmcs-expect-no-error gmcs-expect-wrong-error gmcs-ignore-tests \
25         generics-expect-no-error generics-expect-wrong-error
26
27 all-local: CS0118-2-lib.dll CS0122-10-lib.dll CS0534-3-lib.dll CS0534-4-lib.dll CS0571-3-lib.dll \
28         CS0612-2-lib.dll CS0618-2-lib.dll CS0619-8-lib.dll CS0619-17-lib.dll CS0619-32-lib.dll CS0619-33-lib.dll CS0619-36-lib.dll \
29         CS3005-16-lib.dll CS3013-module.dll
30
31 test-local:
32
33 run-test-ondotnet-local:
34
35 # again, run-test is when the tests actually happen, so
36 # don't compile on make test.
37
38 run-test-local: run-mcs-tests 
39
40 TEST_PROFILE=mcs
41
42 ifeq (net_2_0, $(PROFILE))
43 TEST_PROFILE=gmcs
44 run-test-local: run-generics-tests
45 endif
46
47 test-everything:
48         $(MAKE) PROFILE=default run-test
49         $(MAKE) PROFILE=net_2_0 run-test
50
51 run-mcs-tests:
52         -rm -f $(TEST_PROFILE).log
53         @./do-tests.pl $(TEST_PROFILE) '$(CSCOMPILE)' "cs*.cs"
54
55 run-generics-tests:
56         -rm -f generics.log
57         @./do-tests.pl generics '$(GENERICS_COMPILE)' "gcs*.cs"
58
59 clean-local:
60         rm -f *.exe *.dll *.log *.mdb dummy.xml *.junk
61
62 dist-local: dist-default
63
64 install-local uninstall-local:
65
66 %-lib.dll: %-lib.cs
67         $(BOOTSTRAP_MCS) /target:library /out:$@ $<
68
69 %-module.dll: %-module.cs
70         $(BOOTSTRAP_MCS) /target:module /out:$@ $<