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