ChangeLog: Updated ChangeLog
[mono.git] / mcs / Makefile
1 thisdir := .
2 SUBDIRS := build jay mcs class mbas nunit20 monoresgen ilasm tools tests errors docs
3 OVERRIDE_BARE_TARGETS = hells yeah
4 include build/rules.make
5
6 # Define these ourselves to that the platform checks come first
7
8 #all: platform-check profile-check all-recursive #all-local
9
10 .PHONY: all clean all-profile clean-profile install uninstall test run-test testcorlib
11 all clean:
12 ifeq ($(PROFILE),)
13         $(MAKE) PROFILE=default $@-profile
14 ifneq ($(PLATFORM),win32)
15         $(MAKE) PROFILE=net_2_0 $@-profile
16 endif
17 else
18         $(MAKE) PROFILE=$(PROFILE) $@-profile
19 endif
20
21 all-profile: platform-check profile-check all-recursive
22
23 install: platform-check profile-check install-recursive #install-local
24
25 uninstall: platform-check profile-check uninstall-recursive #uninstall-local
26
27 test: platform-check profile-check test-recursive #test-local
28
29 run-test: run-test-recursive #run-test-local
30
31 clean-profile: clean-recursive #clean-local
32
33 # fun specialty targets
34
35 testcorlib:
36         @cd class/corlib && $(MAKE) test run-test
37
38 # Disting. We need to override $(distdir) here.
39
40 package := mcs-$(VERSION)
41 top_distdir = $(dots)/$(package)
42 distdir = $(top_distdir)
43 export package
44
45 DISTFILES = \
46         AUTHORS                 \
47         ChangeLog               \
48         COPYING                 \
49         COPYING.LIB             \
50         INSTALL.txt             \
51         LICENSE                 \
52         LICENSE.GPL             \
53         LICENSE.LGPL            \
54         Makefile                \
55         mkinstalldirs           \
56         MIT.X11                 \
57         MonoIcon.png            \
58         README                  \
59         ScalableMonoIcon.svg    \
60         winexe.in
61
62 dist-pre:
63         rm -rf $(package)
64
65 dist-post:
66         tar cvzf $(package).tar.gz $(package)
67
68 dist-local: dist-default
69
70 dist-tarball: dist-pre dist-recursive dist-post
71
72 dist: dist-tarball
73         rm -rf $(package)
74
75 # the egrep -v is kind of a hack (to get rid of the makefrags)
76 # but otherwise we have to make dist then make clean which
77 # is sort of not kosher. And it breaks with DIST_ONLY_SUBDIRS.
78 #
79 # We need to set prefix on make so class/System/Makefile can find
80 # the installed System.Xml to build properly
81
82 distcheck:
83         rm -rf InstallTest Distcheck-MCS ; \
84         mkdir InstallTest ; \
85         destdir=`cd InstallTest && pwd` ; \
86         $(MAKE) dist-tarball || exit 1 ; \
87         mv $(package) Distcheck-MCS ; \
88         (cd Distcheck-MCS && \
89             $(MAKE) prefix=$(prefix) && $(MAKE) test && $(MAKE) install DESTDIR="$$destdir" && \
90             $(MAKE) clean && $(MAKE) dist || exit 1) || exit 1 ; \
91         mv Distcheck-MCS $(package) ; \
92         tar tzf $(package)/$(package).tar.gz |sed -e 's,/$$,,' |sort >distdist.list ; \
93         rm $(package)/$(package).tar.gz ; \
94         tar tzf $(package).tar.gz |sed -e 's,/$$,,' |sort >before.list ; \
95         find $(package) |egrep -v '(makefrag|response)' |sed -e 's,/$$,,' |sort >after.list ; \
96         cmp before.list after.list || exit 1 ; \
97         cmp before.list distdist.list || exit 1 ; \
98         rm -f before.list after.list distdist.list ; \
99         rm -rf $(package) InstallTest
100
101 monocharge:
102         chargedir=monocharge-`date -u +%Y%m%d` ; \
103         mkdir "$$chargedir" ; \
104         DESTDIR=`cd "$$chargedir" && pwd` ; \
105         $(MAKE) install DESTDIR="$$DESTDIR" || exit 1 ; \
106         tar cvzf "$$chargedir".tgz "$$chargedir" ; \
107         rm -rf "$$chargedir"
108
109 # A bare-bones monocharge.
110
111 monocharge-lite:
112         chargedir=monocharge-lite-`date -u +%Y%m%d` ; \
113         mkdir "$$chargedir" ; \
114         DESTDIR=`cd "$$chargedir" && pwd` ; \
115         $(MAKE) -C mcs install DESTDIR="$$DESTDIR" || exit 1; \
116         $(MAKE) -C class/corlib install DESTDIR="$$DESTDIR" || exit 1; \
117         $(MAKE) -C class/System install DESTDIR="$$DESTDIR" || exit 1; \
118         $(MAKE) -C class/System.XML install DESTDIR="$$DESTDIR" || exit 1; \
119         $(MAKE) -C class/Mono.CSharp.Debugger install DESTDIR="$$DESTDIR" || exit 1; \
120         tar cvzf "$$chargedir".tgz "$$chargedir" ; \
121         rm -rf "$$chargedir"