makefile 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. ifeq ($(findstring CYGWIN,$(shell uname)),)
  2. CSC=mcs
  3. RUN_MONO=mono
  4. else
  5. CSC=csc /nologo
  6. endif
  7. CORCOMPARE=../../../mcs/tools/corcompare
  8. OBJECTS= \
  9. deploy/ado-net.html \
  10. deploy/anoncvs.html \
  11. deploy/asp-net.html \
  12. deploy/blogs.html \
  13. deploy/books.html \
  14. deploy/bugs.html \
  15. deploy/contributing.html \
  16. deploy/contact.html \
  17. deploy/c-sharp.html \
  18. deploy/ccvs.html \
  19. deploy/documentation.html \
  20. deploy/download.html \
  21. deploy/drawing.html \
  22. deploy/crypto.html \
  23. deploy/embedded-api.html \
  24. deploy/faq.html \
  25. deploy/firebird.html \
  26. deploy/forge.html \
  27. deploy/gcc-frontend.html \
  28. deploy/gtk-sharp.html \
  29. deploy/hackers.html \
  30. deploy/ideas.html \
  31. deploy/ibmdb2.html \
  32. deploy/index.html \
  33. deploy/oldnews.html \
  34. deploy/java.html \
  35. deploy/jit-debug.html \
  36. deploy/languages.html \
  37. deploy/mailing-lists.html \
  38. deploy/mbas.html \
  39. deploy/mono-beginning.html \
  40. deploy/mono-contribution-howto.html \
  41. deploy/mono-todo.html \
  42. deploy/monodoc-xml.html \
  43. deploy/mysql.html \
  44. deploy/odbc.html \
  45. deploy/oledb.html \
  46. deploy/oracle.html \
  47. deploy/other.html \
  48. deploy/papers.html \
  49. deploy/passport.html \
  50. deploy/plans.html \
  51. deploy/porting.html \
  52. deploy/postgresql.html \
  53. deploy/ppc.html \
  54. deploy/provider-factory.html \
  55. deploy/rationale.html \
  56. deploy/resources.html \
  57. deploy/runtime.html \
  58. deploy/screenshots.html \
  59. deploy/sqlclient.html \
  60. deploy/sqlite.html \
  61. deploy/status.html \
  62. deploy/sybase.html \
  63. deploy/tdsclient.html \
  64. deploy/tds-providers.html \
  65. deploy/team.html \
  66. deploy/testing.html \
  67. deploy/tools.html \
  68. deploy/winforms.html \
  69. deploy/class-library.html \
  70. deploy/classlib-doc.html \
  71. deploy/class-status.html \
  72. deploy/class-status-corlib.html \
  73. deploy/class-status-System.html \
  74. deploy/class-status-System.Xml.html \
  75. deploy/class-status-System.Data.html \
  76. deploy/class-status-System.Security.html \
  77. deploy/class-status-System.Web.html \
  78. deploy/class-status-System.Web.Services.html \
  79. deploy/class-status-System.Drawing.html \
  80. deploy/class-status-Microsoft.VisualBasic.html \
  81. deploy/class-status-System.Windows.Forms.html \
  82. deploy/class-status-System.DirectoryServices.html \
  83. deploy/class-status-Cscompmgd.html \
  84. deploy/class-status-System.Runtime.Serialization.Formatters.Soap.html
  85. HTML_SOURCES = ../mono-roadmap.html
  86. #2,Configuration.Install,class-status-System.Configuration.Install.html,class-status-System.Configuration.Install.src,cm/cormissing.css,cm/cormissing.js
  87. #2,Runtime.Remoting,class-status-System.Runtime.Remoting.html,class-status-System.Runtime.Remoting.src,cm/cormissing.css,cm/cormissing.js
  88. # deploy/class-status-System.Configuration.Install.html \
  89. # deploy/class-status-System.Runtime.Remoting.html \
  90. NON_HTML_SOURCES= \
  91. ../mono-build.sh \
  92. ../mono-build-w32.sh
  93. all: $(OBJECTS) deploy/index.rss ../team
  94. perl process.pl commands template.html.in deploy
  95. cp $(HTML_SOURCES) deploy
  96. test -d deploy/team || mkdir deploy/team
  97. cp team/*png deploy/team
  98. tutorial: mono-beginning.html.stamp mono-beginning.pdf
  99. cp -a mono-beginning mono-beginning.xml mono-beginning.pdf deploy
  100. mono-beginning.html.stamp: mono-beginning.xml
  101. db2html mono-beginning.xml
  102. touch mono-beginning.html.stamp
  103. mono-beginning.pdf: mono-beginning.xml
  104. db2pdf mono-beginning.xml
  105. mono-beginning.xml: ../mono-beginning.xml
  106. cp ../mono-beginning.xml .
  107. deploy/index.rss: mono-rss.exe ../index
  108. $(RUN_MONO) ./mono-rss.exe ../index deploy/index.rss
  109. mono-rss.exe: mono-rss.cs rss.cs
  110. $(CSC) mono-rss.cs rss.cs
  111. ../team: render-team-page.exe team.xml
  112. $(RUN_MONO) ./render-team-page.exe team.xml "../team"
  113. render-team-page.exe: render-team-page.cs
  114. $(CSC) render-team-page.cs
  115. clean:
  116. rm -f $(OBJECTS) $(patsubst deploy/%.html,src/%.src, $(OBJECTS)) src/*.xml src/*.html.in ../class-status-* ../class-status infos/*.xml
  117. push:
  118. cp -f $(NON_HTML_SOURCES) deploy
  119. cp ../mono-roadmap.html deploy
  120. #echo scp -P 2200 -r deploy/* [email protected]:/web/cvsmodules/mono
  121. #(cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . [email protected]:/web/cvsmodules/mono )
  122. (cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . [email protected]:/web/cvsmodules/mono )
  123. push2:
  124. scp -r deploy/* primates:public_html/xxx
  125. $(OBJECTS): $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
  126. #.PRECIOUS: $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
  127. transform.exe: transform.cs
  128. $(CSC) transform.cs
  129. .PRECIOUS: src/%.src
  130. src/%.src: ../% commands template.html.in makefile
  131. perl htmlify $< > $@
  132. .PRECIOUS: ../class-status-%
  133. ../class-status-%: src/%.html.in ../class-status.in
  134. cat ../class-status.in $< > $@
  135. .PRECIOUS: src/%.html.in
  136. src/%.html.in: src/%.xml transform.exe $(CORCOMPARE)/mono-api.xsl
  137. $(RUN_MONO) ./transform.exe $< $(CORCOMPARE)/mono-api.xsl > $@ || (rm -f $@ && exit 1)
  138. .PRECIOUS: infos/%.xml
  139. infos/%.xml: ../../../mcs/class/lib/%.dll $(CORCOMPARE)/mono-api-info.exe
  140. $(RUN_MONO) $(CORCOMPARE)/mono-api-info.exe $< > $@ || (rm -f $@ && exit 1)
  141. .PRECIOUS: src/%.xml
  142. src/%.xml: infos/%.xml $(CORCOMPARE)/mono-api-diff.exe
  143. $(RUN_MONO) $(CORCOMPARE)/mono-api-diff.exe masterinfos/$(notdir $<) $< > $@ || (rm -f $@ && exit 1)
  144. # corlib, corlib...
  145. infos/mscorlib.xml: ../../../mcs/class/lib/mscorlib.dll $(CORCOMPARE)/mono-api-info.exe
  146. $(RUN_MONO) $(CORCOMPARE)/mono-api-info.exe $(notdir $(basename $<)) > $@ || (rm -f $@ && exit 1)
  147. src/corlib.xml: infos/mscorlib.xml $(CORCOMPARE)/mono-api-diff.exe
  148. $(RUN_MONO) $(CORCOMPARE)/mono-api-diff.exe masterinfos/mscorlib.xml $< > $@ || (rm -f $@ && exit 1)
  149. # System
  150. infos/System.xml: ../../../mcs/class/lib/System.dll $(CORCOMPARE)/mono-api-info.exe
  151. $(RUN_MONO) $(CORCOMPARE)/mono-api-info.exe $(notdir $(basename $<)) > $@ || (rm -f $@ && exit 1)
  152. src/System.xml: infos/System.xml $(CORCOMPARE)/mono-api-diff.exe
  153. $(RUN_MONO) $(CORCOMPARE)/mono-api-diff.exe masterinfos/System.xml $< > $@ || (rm -f $@ && exit 1)
  154. # System.Xml
  155. infos/System.Xml.xml: ../../../mcs/class/lib/System.Xml.dll $(CORCOMPARE)/mono-api-info.exe
  156. $(RUN_MONO) $(CORCOMPARE)/mono-api-info.exe $(notdir $(basename $<)) > $@ || (rm -f $@ && exit 1)
  157. src/System.Xml.xml: infos/System.Xml.xml $(CORCOMPARE)/mono-api-diff.exe
  158. $(RUN_MONO) $(CORCOMPARE)/mono-api-diff.exe masterinfos/System.Xml.xml $< > $@ || (rm -f $@ && exit 1)
  159. src/System.DirectoryServices.xml: infos/System.DirectoryServices.xml $(CORCOMPARE)/mono-api-diff.exe
  160. $(RUN_MONO) $(CORCOMPARE)/mono-api-diff.exe masterinfos/System.DirectoryServices.xml $< > $@ || (rm -f $@ && exit 1)
  161. ../class-status: ../class-status.in
  162. cp -f $< $@
  163. make-rss:
  164. $(CSC) make-rss.cs -o