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