Makefile.am 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ## Process this file with automake to produce Makefile.in
  2. SUBDIRS=devhelp examples
  3. # The top-level SGML file.
  4. DOC_MAIN_XML_FILE=gnome-xml.xml
  5. # The directory containing the source code (if it contains documentation).
  6. DOC_SOURCE_DIR=..
  7. # A file in win32 depends upon one of the doc files
  8. WIN32_DIR=$(top_srcdir)/win32
  9. PAGES= architecture.html bugs.html contribs.html docs.html DOM.html \
  10. downloads.html entities.html example.html help.html index.html \
  11. interface.html intro.html library.html namespaces.html news.html \
  12. tree.html xmldtd.html XMLinfo.html XSLT.html
  13. APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \
  14. APIsymbols.html APIchunk0.html
  15. EXTRA_DIST=xmlcatalog_man.xml tutorial/*.html tutorial/*.c tutorial/*.pdf \
  16. tutorial/images/*.png tutorial/images/callouts/*.png \
  17. API*.html *.1 *.xsl *.html *.gif w3c.png html/*.html \
  18. html/*.png libxml2-api.xml index.py search.php \
  19. apibuild.py libxml2.xsa xmllint.xml xmlcatalog_man.xml \
  20. README.docs symbols.xml
  21. man_MANS = xmllint.1 xmlcatalog.1
  22. if REBUILD_DOCS
  23. all: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS)
  24. else
  25. all:
  26. endif
  27. api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src ../elfgcchack.h $(srcdir)/site.xsl
  28. web: $(PAGES)
  29. ../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml
  30. -@(if [ -x $(XSLTPROC) ] ; then \
  31. echo "Rebuilding the elfgcchack.h header" ; \
  32. $(XSLTPROC) --nonet $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml > elfgcchack.h ; \
  33. if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \
  34. echo "updating ../elfgcchack.h"; \
  35. cp elfgcchack.h ../elfgcchack.h; \
  36. fi ; rm -f elfgcchack.h ; fi );
  37. $(PAGES): xml.html site.xsl
  38. -@(if [ -x $(XSLTPROC) ] ; then \
  39. echo "Rebuilding the HTML Web pages from xml.html" ; \
  40. $(XSLTPROC) --nonet --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/xml.html > index.html ; fi );
  41. -@(if [ -x $(XMLLINT) ] ; then \
  42. echo "Validating the HTML Web pages" ; \
  43. $(XMLLINT) --nonet --valid --noout $(PAGES) ; fi );
  44. $(top_builddir)/NEWS: $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html
  45. -@(if [ -x $(XSLTPROC) ] ; then \
  46. $(XSLTPROC) --nonet $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html > $(top_builddir)/NEWS ; fi );
  47. libxml2.xsa: $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html
  48. -@(if [ -x $(XSLTPROC) ] ; then \
  49. echo "Rebuilding the NEWS file" ; \
  50. $(XSLTPROC) --nonet $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html > libxml2.xsa ; fi );
  51. $(APIPAGES): libxml2-api.xml libxml2-refs.xml $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/api.xsl
  52. -@(if [ -x $(XSLTPROC) ] ; then \
  53. echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \
  54. $(XSLTPROC) --nonet --html $(top_srcdir)/doc/api.xsl \
  55. $(top_srcdir)/doc/xml.html ; fi );
  56. -@(if [ -x $(XMLLINT) ] ; then \
  57. echo "Validating the HTML API pages" ; \
  58. $(XMLLINT) --nonet --valid --noout API*.html ; fi );
  59. $(srcdir)/html/index.html: libxml2-api.xml $(srcdir)/newapi.xsl
  60. -@(if [ -x $(XSLTPROC) ] ; then \
  61. echo "Rebuilding the HTML pages from the XML API" ; \
  62. $(XSLTPROC) --nonet $(srcdir)/newapi.xsl libxml2-api.xml ; fi )
  63. -@(if [ -x $(XMLLINT) ] ; then \
  64. echo "Validating the resulting XHTML pages" ; \
  65. $(XMLLINT) --nonet --valid --noout html/*.html ; fi );
  66. wiki: libxml2-api.xml $(srcdir)/wiki.xsl
  67. -@(if [ -x $(XSLTPROC) ] ; then \
  68. echo "Rebuilding the wiki HTML pages from the XML API" ; \
  69. $(XSLTPROC) --nonet $(srcdir)/wiki.xsl libxml2-api.xml; fi )
  70. $(WIN32_DIR)/libxml2.def.src: libxml2-api.xml
  71. -@(if [ -x $(XSLTPROC) ] ; then \
  72. $(XSLTPROC) -o $(WIN32_DIR)/libxml2.def.src \
  73. --nonet $(WIN32_DIR)/defgen.xsl libxml2-api.xml ; fi )
  74. libxml2-api.xml libxml2-refs.xml ../libxml2.syms: apibuild.py symbols.xml syms.xsl checkapisym.xsl ../include/libxml/*.h ../*.c
  75. -(./apibuild.py)
  76. ($(XSLTPROC) checkapisym.xsl libxml2-api.xml)
  77. ($(XSLTPROC) -o ../libxml2.syms syms.xsl symbols.xml)
  78. -@(cd .. ; $(MAKE) rebuild_testapi)
  79. xmllint.1: xmllint.xml
  80. -@($(XSLTPROC) --nonet xmllint.xml)
  81. xmlcatalog.1: xmlcatalog_man.xml
  82. -@($(XSLTPROC) --nonet xmlcatalog_man.xml)
  83. clean-local:
  84. rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
  85. maintainer-clean-local: clean-local
  86. rm -rf libxml-decl-list.txt libxml-decl.txt
  87. rebuild: api all
  88. install-data-local:
  89. $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)
  90. -@INSTALL@ -m 0644 $(srcdir)/xml.html $(srcdir)/encoding.html $(srcdir)/FAQ.html $(srcdir)/structure.gif $(srcdir)/DOM.gif $(srcdir)/smallfootonly.gif $(srcdir)/redhat.gif $(srcdir)/libxml.gif $(srcdir)/w3c.png $(srcdir)/Libxml2-Logo-180x168.gif $(srcdir)/Libxml2-Logo-90x34.gif $(DESTDIR)$(HTML_DIR)
  91. $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/html
  92. -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html
  93. -@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html
  94. $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial
  95. -@INSTALL@ -m 0644 $(srcdir)/tutorial/*.* \
  96. $(DESTDIR)$(HTML_DIR)/tutorial
  97. $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial/images
  98. -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/*.* \
  99. $(DESTDIR)$(HTML_DIR)/tutorial/images
  100. $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts
  101. -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/callouts/*.* \
  102. $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts
  103. .PHONY : html xml templates scan