Indendation
[mono.git] / doc / web / makefile
1 ifeq ($(findstring CYGWIN,$(shell uname)),)
2 CSC=mcs
3 RUN_MONO=mono
4 else
5 CSC=csc /nologo
6 endif
7
8 CORCOMPARE=../../../mcs/tools/corcompare
9
10 OBJECTS=                                                                        \
11         deploy/ado-net.html                                                     \
12         deploy/anoncvs.html                                                     \
13         deploy/asp-net.html                                                     \
14         deploy/blogs.html                                                       \
15         deploy/books.html                                                       \
16         deploy/bugs.html                                                        \
17         deploy/contributing.html                                                \
18         deploy/contact.html                                                     \
19         deploy/c-sharp.html                                                     \
20         deploy/ccvs.html                                                        \
21         deploy/documentation.html                                               \
22         deploy/download.html                                                    \
23         deploy/drawing.html                                                     \
24         deploy/compiling.html                                                   \
25         deploy/crypto.html                                                      \
26         deploy/embedded-api.html                                                \
27         deploy/faq.html                                                         \
28         deploy/firebird.html                                                    \
29         deploy/forge.html                                                       \
30         deploy/gcc-frontend.html                                                \
31         deploy/gtk-sharp.html                                                   \
32         deploy/hackers.html                                                     \
33         deploy/ideas.html                                                       \
34         deploy/ibmdb2.html                                                      \
35         deploy/index.html                                                       \
36         deploy/oldnews.html                                                     \
37         deploy/java.html                                                        \
38         deploy/jit-debug.html                                                   \
39         deploy/languages.html                                                   \
40         deploy/mailing-lists.html                                               \
41         deploy/mbas.html                                                        \
42         deploy/mono-beginning.html                                              \
43         deploy/mono-contribution-howto.html                                     \
44         deploy/mono-todo.html                                                   \
45         deploy/monodoc-xml.html                                                 \
46         deploy/mysql.html                                                       \
47         deploy/odbc.html                                                        \
48         deploy/oledb.html                                                       \
49         deploy/oracle.html                                                      \
50         deploy/other.html                                                       \
51         deploy/papers.html                                                      \
52         deploy/passport.html                                                    \
53         deploy/plans.html                                                       \
54         deploy/porting.html                                                     \
55         deploy/postgresql.html                                                  \
56         deploy/ppc.html                                                         \
57         deploy/provider-factory.html                                            \
58         deploy/rationale.html                                                   \
59         deploy/resources.html                                                   \
60         deploy/runtime.html                                                     \
61         deploy/screenshots.html                                                 \
62         deploy/sqlclient.html                                                   \
63         deploy/sqlite.html                                                      \
64         deploy/status.html                                                      \
65         deploy/sybase.html                                                      \
66         deploy/tdsclient.html                                                   \
67         deploy/tds-providers.html                                               \
68         deploy/team.html                                                        \
69         deploy/testing.html                                                     \
70         deploy/tools.html                                                       \
71         deploy/winforms.html                                                    \
72         deploy/xml-classes.html                                                 \
73         deploy/class-library.html                                               \
74         deploy/classlib-doc.html                                                \
75         deploy/class-status.html                                                \
76         deploy/class-status-corlib.html                                         \
77         deploy/class-status-System.html                                         \
78         deploy/class-status-System.Xml.html                                     \
79         deploy/class-status-System.Data.html                                    \
80         deploy/class-status-System.Security.html                                \
81         deploy/class-status-System.Web.html                                     \
82         deploy/class-status-System.Web.Services.html                            \
83         deploy/class-status-System.Drawing.html                                 \
84         deploy/class-status-Microsoft.VisualBasic.html                          \
85         deploy/class-status-System.Windows.Forms.html                           \
86         deploy/class-status-System.DirectoryServices.html                       \
87         deploy/class-status-Cscompmgd.html                                      \
88         deploy/class-status-System.Runtime.Serialization.Formatters.Soap.html
89
90 HTML_SOURCES = ../mono-roadmap.html
91
92 #2,Configuration.Install,class-status-System.Configuration.Install.html,class-status-System.Configuration.Install.src,cm/cormissing.css,cm/cormissing.js
93 #2,Runtime.Remoting,class-status-System.Runtime.Remoting.html,class-status-System.Runtime.Remoting.src,cm/cormissing.css,cm/cormissing.js
94
95 #       deploy/class-status-System.Configuration.Install.html   \
96 #       deploy/class-status-System.Runtime.Remoting.html        \
97
98 NON_HTML_SOURCES=               \
99         ../mono-build.sh        \
100         ../mono-build-w32.sh
101
102 all: $(OBJECTS) deploy/index.rss ../team
103         perl process.pl commands template.html.in deploy
104         cp $(HTML_SOURCES) deploy
105         test -d deploy/team || mkdir deploy/team
106         cp team/*png deploy/team
107
108 tutorial: mono-beginning.html.stamp mono-beginning.pdf 
109         cp -a mono-beginning mono-beginning.xml mono-beginning.pdf deploy
110
111 mono-beginning.html.stamp: mono-beginning.xml
112         db2html mono-beginning.xml
113         touch mono-beginning.html.stamp
114
115 mono-beginning.pdf: mono-beginning.xml
116         db2pdf mono-beginning.xml
117
118 mono-beginning.xml: ../mono-beginning.xml
119         cp ../mono-beginning.xml .
120
121 deploy/index.rss: mono-rss.exe ../index
122         $(RUN_MONO) ./mono-rss.exe ../index deploy/index.rss
123
124 mono-rss.exe: mono-rss.cs rss.cs 
125         $(CSC) mono-rss.cs rss.cs
126
127 ../team: render-team-page.exe team.xml
128         $(RUN_MONO) ./render-team-page.exe team.xml "../team"
129
130 render-team-page.exe: render-team-page.cs
131         $(CSC) render-team-page.cs
132
133 clean:
134         rm -f $(OBJECTS) $(patsubst deploy/%.html,src/%.src, $(OBJECTS)) src/*.xml src/*.html.in ../class-status-* ../class-status infos/*.xml
135
136 push:
137         cp -f $(NON_HTML_SOURCES) deploy
138         cp ../mono-roadmap.html deploy
139         #echo scp -P 2200 -r deploy/* www@www.go-mono.com:/web/cvsmodules/mono
140         #(cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . www@www.go-mono.com:/web/cvsmodules/mono )
141         (cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . mono-web@www.go-mono.com:/web/cvsmodules/mono )
142
143
144 push2: 
145         scp -r deploy/* primates:public_html/xxx
146
147 $(OBJECTS): $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
148
149 #.PRECIOUS: $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
150
151 transform.exe: transform.cs
152         $(CSC) transform.cs
153
154
155 .PRECIOUS: src/%.src
156 src/%.src: ../% commands template.html.in makefile
157         perl htmlify $< > $@
158
159 .PRECIOUS: ../class-status-%
160 ../class-status-%: src/%.html.in ../class-status.in
161         cat ../class-status.in $< > $@
162
163
164 .PRECIOUS: src/%.html.in
165 src/%.html.in: src/%.xml transform.exe $(CORCOMPARE)/mono-api.xsl
166         $(RUN_MONO) ./transform.exe $< $(CORCOMPARE)/mono-api.xsl > $@ || (rm -f $@ && exit 1)
167
168
169 .PRECIOUS: infos/%.xml
170 infos/%.xml: ../../../mcs/class/lib/%.dll $(CORCOMPARE)/mono-api-info.exe
171         $(RUN_MONO) $(CORCOMPARE)/mono-api-info.exe $< > $@ || (rm -f $@ && exit 1)
172
173 .PRECIOUS: src/%.xml
174 src/%.xml: infos/%.xml $(CORCOMPARE)/mono-api-diff.exe 
175         $(RUN_MONO) $(CORCOMPARE)/mono-api-diff.exe masterinfos/$(notdir $<) $< > $@ || (rm -f $@ && exit 1)
176
177 # corlib, corlib...
178 infos/mscorlib.xml: ../../../mcs/class/lib/mscorlib.dll $(CORCOMPARE)/mono-api-info.exe
179         $(RUN_MONO) $(CORCOMPARE)/mono-api-info.exe $(notdir $(basename $<)) > $@ || (rm -f $@ && exit 1)
180
181 src/corlib.xml: infos/mscorlib.xml $(CORCOMPARE)/mono-api-diff.exe 
182         $(RUN_MONO) $(CORCOMPARE)/mono-api-diff.exe masterinfos/mscorlib.xml $< > $@ || (rm -f $@ && exit 1)
183
184 # System
185 infos/System.xml: ../../../mcs/class/lib/System.dll $(CORCOMPARE)/mono-api-info.exe
186         $(RUN_MONO) $(CORCOMPARE)/mono-api-info.exe $(notdir $(basename $<)) > $@ || (rm -f $@ && exit 1)
187
188 src/System.xml: infos/System.xml $(CORCOMPARE)/mono-api-diff.exe 
189         $(RUN_MONO) $(CORCOMPARE)/mono-api-diff.exe masterinfos/System.xml $< > $@ || (rm -f $@ && exit 1)
190
191 # System.Xml
192 infos/System.Xml.xml: ../../../mcs/class/lib/System.Xml.dll $(CORCOMPARE)/mono-api-info.exe
193         $(RUN_MONO) $(CORCOMPARE)/mono-api-info.exe $(notdir $(basename $<)) > $@ || (rm -f $@ && exit 1)
194
195 src/System.Xml.xml: infos/System.Xml.xml $(CORCOMPARE)/mono-api-diff.exe 
196         $(RUN_MONO) $(CORCOMPARE)/mono-api-diff.exe masterinfos/System.Xml.xml $< > $@ || (rm -f $@ && exit 1)
197
198 src/System.DirectoryServices.xml: infos/System.DirectoryServices.xml $(CORCOMPARE)/mono-api-diff.exe 
199         $(RUN_MONO) $(CORCOMPARE)/mono-api-diff.exe masterinfos/System.DirectoryServices.xml $< > $@ || (rm -f $@ && exit 1)
200
201 ../class-status: ../class-status.in
202         cp -f $< $@
203
204 make-rss:
205         $(CSC) make-rss.cs -o