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