Makefile.am revision 2afc5c510b974dd91232df5131fd71653cc1bf4e
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=$(datadir)/doc 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 19APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \ 20 APIsymbols.html APIchunk0.html 21EXTRA_DIST=xmlcatalog_man.xml 22 23man_MANS = xmllint.1 xmlcatalog.1 24 25all: $(PAGES) 26 27web: $(PAGES) $(APIPAGES) 28 29$(PAGES): xml.html site.xsl 30 -@(if [ -x $(bindir)/xsltproc ] ; then \ 31 $(bindir)/xsltproc --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/xml.html > index.html ; fi ); 32 33$(APIPAGES): libxml2-refs.xml site.xsl api.xsl 34 -@(if [ -x $(bindir)/xsltproc ] ; then \ 35 $(bindir)/xsltproc --html $(top_srcdir)/doc/api.xsl $(top_srcdir)/doc/xml.html ; fi ); 36 37scan: 38 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 libxml2-py.h libxml_wrap.h xmlschemas.h xmlschemastypes.h" 39 40templates: scan 41 gtkdoc-mktmpl --module=libxml 42 43sgml: 44 gtkdoc-mkdb --module=libxml --source-dir=$(DOC_SOURCE_DIR) 45 46xml: sgml 47 if test -d xml ; then rm xml/* ; else mkdir xml ; fi 48 -@(for s in sgml/*.sgml ; do name=`basename $$s .sgml` ; \ 49 echo '<!DOCTYPE refentry [ <!ENTITY nbsp " "> ]>' > \ 50 xml/"$$name".xml ;\ 51 grep -v "^<colspec" $$s >> xml/"$$name".xml ; done) 52 53libxml2-api.xml libxml2-refs.xml: xml parsedecl.py libxml-decl.txt libxml-decl-list.txt 54 -(./parsedecl.py) 55 56api: libxml2-api.xml libxml2-refs.xml 57 58html: 59 if test -n -d html ; then mkdir html ; fi 60 -cd html && gtkdoc-mkhtml libxml ../$(DOC_MAIN_SGML_FILE) 61 62clean-local: 63 rm -f *~ *.bak *.hierarchy *.signals *-unused.txt 64 65maintainer-clean-local: clean 66 rm -rf sgml html libxml-decl-list.txt libxml-decl.txt 67 68libxml-decl-list.txt : templates 69 70libxml-sections.txt : scan 71 cp libxml-decl-list.txt libxml-sections.txt 72 73rebuild: libxml-sections.txt templates sgml html api 74 75install-data-local: 76 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) 77 -@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)$(TARGET_DIR) 78 -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR) 79 -@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) 80 -(cd $(DESTDIR); gtkdoc-fixxref --module=libxml --html-dir=$(HTML_DIR)) 81 82dist-hook: 83 (cd $(srcdir) ; tar cvf - *.1 site.xsl *.html *.gif w3c.png html/*.html html/*.sgml libxml2-api.xml parsedecl.py index.py search.php) | (cd $(distdir); tar xf -) 84 85.PHONY : html sgml templates scan 86