Port 22 instead of 2200
[mono.git] / web / 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/provider-factory.html                                                    \
13         deploy/mysql.html                                                       \
14         deploy/odbc.html                                                        \
15         deploy/oledb.html                                                       \
16         deploy/oracle.html                                                      \
17         deploy/postgresql.html                                                  \
18         deploy/sqlclient.html                                                   \
19         deploy/sqlite.html                                                      \
20         deploy/sybase.html                                                      \
21         deploy/tdsclient.html                                                   \
22         deploy/anoncvs.html                                                     \
23         deploy/asp-net.html                                                     \
24         deploy/books.html                                                       \
25         deploy/contributing.html                                                \
26         deploy/contact.html                                                     \
27         deploy/c-sharp.html                                                     \
28         deploy/ccvs.html                                                        \
29         deploy/documentation.html                                               \
30         deploy/download.html                                                    \
31         deploy/crypto.html                                                      \
32         deploy/embedded-api.html                                                \
33         deploy/faq.html                                                         \
34         deploy/firebird.html                                                    \
35         deploy/gcc-frontend.html                                                \
36         deploy/gtk-sharp.html                                                   \
37         deploy/hackers.html                                                     \
38         deploy/ideas.html                                                       \
39         deploy/ibmdb2.html                                                      \
40         deploy/index.html                                                       \
41         deploy/oldnews.html                                                     \
42         deploy/java.html                                                        \
43         deploy/jit-debug.html                                                   \
44         deploy/languages.html                                                   \
45         deploy/mailing-lists.html                                               \
46         deploy/mbas.html                                                        \
47         deploy/mono-beginning.html                                              \
48         deploy/mono-contribution-howto.html                                     \
49         deploy/monodoc-xml.html                                                 \
50         deploy/other.html                                                       \
51         deploy/papers.html                                                      \
52         deploy/passport.html                                                    \
53         deploy/plans.html                                                       \
54         deploy/porting.html                                                     \
55         deploy/ppc.html                                                         \
56         deploy/rationale.html                                                   \
57         deploy/resources.html                                                   \
58         deploy/roadmap.html                                                     \
59         deploy/runtime.html                                                     \
60         deploy/screenshots.html                                                 \
61         deploy/status.html                                                      \
62         deploy/team.html                                                        \
63         deploy/testing.html                                                     \
64         deploy/tools.html                                                       \
65         deploy/winforms.html                                                    \
66         deploy/class-status.html                                                \
67         deploy/class-status-corlib.html                                         \
68         deploy/class-status-System.html                                         \
69         deploy/class-status-System.Xml.html                                     \
70         deploy/class-status-System.Drawing.html                                 \
71         deploy/class-status-System.Data.html                                    \
72         deploy/class-status-System.Web.html                                     \
73         deploy/class-status-System.Web.Services.html                            \
74         deploy/class-status-Microsoft.VisualBasic.html                          \
75         deploy/class-status-System.EnterpriseServices.html                      \
76         deploy/class-status-System.Runtime.Serialization.Formatters.Soap.html   \
77         deploy/class-status-System.Security.html                                \
78         deploy/class-status-System.Windows.Forms.html                           \
79         deploy/class-status-Cscompmgd.html                                      \
80         deploy/class-library.html                                               \
81         deploy/classlib-doc.html
82
83 #2,Configuration.Install,class-status-System.Configuration.Install.html,class-status-System.Configuration.Install.src,cm/cormissing.css,cm/cormissing.js
84 #2,Runtime.Remoting,class-status-System.Runtime.Remoting.html,class-status-System.Runtime.Remoting.src,cm/cormissing.css,cm/cormissing.js
85
86 #       deploy/class-status-System.Configuration.Install.html   \
87 #       deploy/class-status-System.Runtime.Remoting.html        \
88
89 NON_HTML_SOURCES=               \
90         ../mono-build.sh        \
91         ../mono-build-w32.sh
92
93 all: $(OBJECTS) deploy/index.rss ../team
94         perl process.pl commands template.html.in deploy
95         -mkdir deploy/team
96         cp team/*png deploy/team
97
98 tutorial: mono-beginning.html.stamp mono-beginning.pdf 
99         cp -a mono-beginning mono-beginning.xml mono-beginning.pdf deploy
100
101 mono-beginning.html.stamp: mono-beginning.xml
102         db2html mono-beginning.xml
103         touch mono-beginning.html.stamp
104
105 mono-beginning.pdf: mono-beginning.xml
106         db2pdf mono-beginning.xml
107
108 mono-beginning.xml: ../mono-beginning.xml
109         cp ../mono-beginning.xml .
110
111 deploy/index.rss: mono-rss.exe ../index
112         $(RUN_MONO) ./mono-rss.exe ../index deploy/index.rss
113
114 mono-rss.exe: mono-rss.cs rss.cs 
115         $(CSC) mono-rss.cs rss.cs
116
117 ../team: render-team-page.exe team.xml
118         $(RUN_MONO) ./render-team-page.exe team.xml "../team"
119
120 render-team-page.exe: render-team-page.cs
121         $(CSC) render-team-page.cs
122
123 clean:
124         rm -f $(OBJECTS) $(patsubst deploy/%.html,src/%.src, $(OBJECTS)) src/*.xml src/*.html.in ../class-status-* ../class-status
125
126 push:
127         cp -f $(NON_HTML_SOURCES) deploy
128         echo scp -P 2200 -r deploy/* www@www.go-mono.com:/web/cvsmodules/mono
129         (cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . www@www.go-mono.com:/web/cvsmodules/mono )
130
131 push2: 
132         scp -r deploy/* primates:public_html/xxx
133
134 $(OBJECTS): $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
135
136 #.PRECIOUS: $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
137
138 transform.exe: transform.cs
139         $(CSC) transform.cs
140
141
142 .PRECIOUS: src/%.src
143 src/%.src: ../% commands template.html.in #makefile
144         perl htmlify $< > $@
145
146 .PRECIOUS: ../class-status-%
147 ../class-status-%: src/%.html.in ../class-status.in
148         cat ../class-status.in $< > $@
149
150
151 .PRECIOUS: src/%.html.in
152 src/%.html.in: src/%.xml transform.exe $(CORCOMPARE)/cormissing.xsl
153         $(RUN_MONO) ./transform.exe $< $(CORCOMPARE)/cormissing.xsl > $@
154
155
156
157 .PRECIOUS: src/%.xml
158 src/%.xml: ../../../mcs/class/lib/%.dll $(CORCOMPARE)/CorCompare.exe
159         $(RUN_MONO) $(CORCOMPARE)/CorCompare.exe -x $@ $<
160
161 src/corlib.xml: ../../../mcs/class/lib/corlib_cmp.dll $(CORCOMPARE)/CorCompare.exe
162         $(RUN_MONO) $(CORCOMPARE)/CorCompare.exe -f corlib -ms mscorlib -x $@ $<
163
164 src/System.Security.xml: ../../../mcs/class/lib/System.Security_cmp.dll $(CORCOMPARE)/CorCompare.exe
165         $(RUN_MONO) $(CORCOMPARE)/CorCompare.exe -f System.Security -ms System.Security -x $@ $<
166
167 ../class-status: ../class-status.in
168         cp -f $< $@
169
170 make-rss:
171         $(CSC) make-rss.cs -o