f43893fba89c242b10666300e24b2c4246c0d363
[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/rationale.html                   \
42         deploy/resources.html                   \
43         deploy/roadmap.html                     \
44         deploy/runtime.html                     \
45         deploy/status.html                      \
46         deploy/testing.html                     \
47         deploy/tools.html                       \
48         deploy/winforms.html
49
50 # deploy/class-status-System.html               \
51
52 NON_HTML_SOURCES=       \
53         ../mono-build.sh        \
54         ../mono-build-w32.sh
55
56
57 all: $(OBJECTS)
58         perl process.pl commands template.html.in deploy
59
60 clean:
61         rm -f $(OBJECTS) $(patsubst deploy/%.html,src/%.src, $(OBJECTS)) src/*.xml src/*.html.in ../class-status-* ../class-status
62
63 push:
64         cp -f $(NON_HTML_SOURCES) deploy
65         echo scp -P 2200 -r deploy/* www@www.ximian.com:/web/cvsmodules/mono
66         (cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh -p 2200' . www@www.ximian.com:/web/cvsmodules/mono )
67
68 push2: 
69         scp -r deploy/* primates:public_html/xxx
70
71 $(OBJECTS): $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
72
73 #.PRECIOUS: $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
74
75
76
77 .PRECIOUS: src/%.src
78 src/%.src: ../% commands makefile template.html.in
79         perl htmlify $< > $@
80
81
82
83 .PRECIOUS: ../class-status-%
84 ../class-status-%: src/%.html.in ../class-status.in
85         cat ../class-status.in $< > $@
86
87
88 .PRECIOUS: src/%.html.in
89 src/%.html.in: src/%.xml $(CORCOMPARE)/transform.js $(CORCOMPARE)/cormissing.xsl
90         $(CSCRIPT) /nologo $(CORCOMPARE)/transform.js $< $(CORCOMPARE)/cormissing.xsl > $@
91
92
93
94 .PRECIOUS: src/%.xml
95 src/%.xml: ../../../mcs/class/lib/%.dll $(CORCOMPARE)/CorCompare.exe
96         $(CORCOMPARE)/CorCompare.exe -x $@ $<
97
98 src/corlib.xml: ../../../mcs/class/lib/corlib_cmp.dll $(CORCOMPARE)/CorCompare.exe
99         $(CORCOMPARE)/CorCompare.exe -f corlib -ms mscorlib -x $@ $<
100
101
102 ../class-status: ../class-status.in
103         cp -f $< $@