added ppc
[mono.git] / web / web / makefile
1 CSCRIPT = $(SYSTEMROOT)/system32/cscript.exe
2
3 CORCOMPARE=../../../mcs/tools/corcompare
4
5 OBJECTS=        \
6         deploy/ado-net.html                     \
7         deploy/anoncvs.html                     \
8         deploy/asp-net.html                     \
9         deploy/books.html                       \
10         deploy/contributing.html                \
11         deploy/class-status.html                \
12         deploy/class-status-corlib.html         \
13         deploy/class-status-System.html         \
14         deploy/class-status-System.Xml.html     \
15         deploy/class-status-System.Drawing.html \
16         deploy/class-status-System.Data.html    \
17         deploy/class-status-System.Web.html     \
18         deploy/class-library.html               \
19         deploy/classlib-doc.html                \
20         deploy/contact.html                     \
21         deploy/c-sharp.html                     \
22         deploy/ccvs.html                        \
23         deploy/documentation.html               \
24         deploy/download.html                    \
25         deploy/faq.html                         \
26         deploy/gcc-frontend.html                \
27         deploy/index.html                       \
28         deploy/ideas.html                       \
29         deploy/java.html                        \
30         deploy/jit-debug.html                   \
31         deploy/jit-debug-sample.html            \
32         deploy/jit-debug-sample2.html           \
33         deploy/languages.html                   \
34         deploy/mailing-lists.html               \
35         deploy/mono-contribution-howto.html     \
36         deploy/monodoc-xml.html                 \
37         deploy/papers.html                      \
38         deploy/passport.html                    \
39         deploy/plans.html                       \
40         deploy/porting.html                     \
41         deploy/ppc.html                         \
42         deploy/rationale.html                   \
43         deploy/resources.html                   \
44         deploy/roadmap.html                     \
45         deploy/runtime.html                     \
46         deploy/status.html                      \
47         deploy/testing.html                     \
48         deploy/tools.html                       \
49         deploy/winforms.html
50
51 # deploy/class-status-System.html               \
52
53 NON_HTML_SOURCES=       \
54         ../mono-build.sh        \
55         ../mono-build-w32.sh
56
57
58 all: $(OBJECTS)
59         perl process.pl commands template.html.in deploy
60
61 clean:
62         rm -f $(OBJECTS) $(patsubst deploy/%.html,src/%.src, $(OBJECTS)) src/*.xml src/*.html.in ../class-status-* ../class-status
63
64 push:
65         cp -f $(NON_HTML_SOURCES) deploy
66         echo scp -P 2200 -r deploy/* www@www.ximian.com:/web/cvsmodules/mono
67         (cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh -p 2200' . www@www.ximian.com:/web/cvsmodules/mono )
68
69 push2: 
70         scp -r deploy/* primates:public_html/xxx
71
72 $(OBJECTS): $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
73
74 #.PRECIOUS: $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
75
76
77
78 .PRECIOUS: src/%.src
79 src/%.src: ../% commands makefile template.html.in
80         perl htmlify $< > $@
81
82
83
84 .PRECIOUS: ../class-status-%
85 ../class-status-%: src/%.html.in ../class-status.in
86         cat ../class-status.in $< > $@
87
88
89 .PRECIOUS: src/%.html.in
90 src/%.html.in: src/%.xml $(CORCOMPARE)/transform.js $(CORCOMPARE)/cormissing.xsl
91         $(CSCRIPT) /nologo $(CORCOMPARE)/transform.js $< $(CORCOMPARE)/cormissing.xsl > $@
92
93
94
95 .PRECIOUS: src/%.xml
96 src/%.xml: ../../../mcs/class/lib/%.dll $(CORCOMPARE)/CorCompare.exe
97         $(CORCOMPARE)/CorCompare.exe -x $@ $<
98
99 src/corlib.xml: ../../../mcs/class/lib/corlib_cmp.dll $(CORCOMPARE)/CorCompare.exe
100         $(CORCOMPARE)/CorCompare.exe -f corlib -ms mscorlib -x $@ $<
101
102
103 ../class-status: ../class-status.in
104         cp -f $< $@