Makefile.am revision 610064716fa55ff1dfefb367f57600efd19196af
1## Process this file with automake to produce Makefile.in 2 3# The name of the module. 4DOC_MODULE=libxml2-$(VERSION) 5 6# The top-level SGML file. 7DOC_MAIN_SGML_FILE=gnome-xml.sgml 8 9# The directory containing the source code (if it contains documentation). 10DOC_SOURCE_DIR=.. 11 12HTML_DIR=@HTML_DIR@ 13 14TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/html 15PAGES= architecture.html bugs.html contribs.html docs.html DOM.html \ 16 downloads.html entities.html example.html help.html index.html \ 17 interface.html intro.html library.html namespaces.html news.html \ 18 tree.html xmldtd.html XMLinfo.html XSLT.html 19 20man_MANS = xmllint.1 xmlcatalog.1 21 22all: $(PAGES) 23 24$(PAGES): xml.html site.xsl 25 -@(if [ -x $(bindir)/xsltproc ] ; then \ 26 $(bindir)/xsltproc --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/xml.html > index.html ; fi ); 27 28scan: 29 gtkdoc-scan --module=libxml --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="acconfig.h config.h xmlwin32version.h win32config.h trio.h triostr.h triop.h config-mac.h XMLTestPrefix2.h XMLTestPrefix.h triodef.h trionan.h xlink.h libxml.h" 30 31templates: scan 32 gtkdoc-mktmpl --module=libxml 33 34sgml: 35 gtkdoc-mkdb --module=libxml --source-dir=$(DOC_SOURCE_DIR) 36 37xml: sgml 38 if test -d xml ; then rm xml/* ; else mkdir xml ; fi 39 -@(for s in sgml/*.sgml ; do name=`basename $$s .sgml` ; \ 40 echo '<!DOCTYPE refentry [ <!ENTITY nbsp " "> ]>' > \ 41 xml/"$$name".xml ;\ 42 grep -v "^<colspec" $$s >> xml/"$$name".xml ; done) 43 44libxml2-api.xml: xml parsedecl.py libxml-decl.txt libxml-decl-list.txt 45 -./parsedecl.py 46 47api: libxml2-api.xml 48 49html: 50 if test -n -d html ; then mkdir html ; fi 51 -cd html && gtkdoc-mkhtml libxml ../$(DOC_MAIN_SGML_FILE) 52 53clean-local: 54 rm -f *~ *.bak *.hierarchy *.signals *-unused.txt 55 56maintainer-clean-local: clean 57 rm -rf sgml html libxml-decl-list.txt libxml-decl.txt 58 59libxml-decl-list.txt : templates 60 61libxml-sections.txt : scan 62 cp libxml-decl-list.txt libxml-sections.txt 63 64rebuild: libxml-sections.txt templates sgml html api 65 66install-data-local: 67 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) 68 -@INSTALL@ -m 0644 $(srcdir)/xml.html $(srcdir)/encoding.html $(srcdir)/FAQ.html $(srcdir)/structure.gif $(srcdir)/DOM.gif $(DESTDIR)$(TARGET_DIR) 69 -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR) 70 -@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) 71 -(cd $(DESTDIR); gtkdoc-fixxref --module=libxml --html-dir=$(HTML_DIR)) 72 73dist-hook: 74 (cd $(srcdir) ; tar cvf - *.1 site.xsl *.html *.gif html/*.html html/*.sgml libxml2-api.xml parsedecl.py) | (cd $(distdir); tar xf -) 75 76.PHONY : html sgml templates scan 77