summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am27
1 files changed, 25 insertions, 2 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 0de67f68..1705eb09 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -14,27 +14,50 @@ HTML_DIR=@HTML_DIR@
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/html
PAGES= API.html bugs.html contribs.html docs.html downloads.html \
help.html index.html intro.html news.html xsltproc2.html FAQ.html
+APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \
+ APIsymbols.html APIchunk0.html
man_MANS = xsltproc.1
all : $(PAGES)
+web: $(PAGES) $(APIPAGES)
+
$(PAGES): $(srcdir)/xslt.html $(srcdir)/site.xsl
../xsltproc/xsltproc --html $(srcdir)/site.xsl $(srcdir)/xslt.html > index.html
+$(APIPAGES): libxslt-refs.xml site.xsl api.xsl
+ -@(if [ -x $(bindir)/xsltproc ] ; then \
+ $(bindir)/xsltproc --html $(srcdir)/api.xsl $(srcdir)/xslt.html ; fi );
+
scan:
- gtkdoc-scan --module=libxslt --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="acconfig.h config.h win32config.h"
+ gtkdoc-scan --module=libxslt --source-dir=$(DOC_SOURCE_DIR)/libxslt --ignore-headers="acconfig.h config.h win32config.h"
+# gtkdoc-scan --module=libexslt --source-dir=$(DOC_SOURCE_DIR)/libexslt --ignore-headers="acconfig.h config.h win32config.h"
templates: scan
gtkdoc-mktmpl --module=libxslt
+# gtkdoc-mktmpl --module=libexslt
sgml:
- gtkdoc-mkdb --module=libxslt --source-dir=$(DOC_SOURCE_DIR)
+ gtkdoc-mkdb --module=libxslt --source-dir=$(DOC_SOURCE_DIR)/libxslt
+# gtkdoc-mkdb --module=libxslt --source-dir=$(DOC_SOURCE_DIR)/libexslt
html:
if ! test -d html ; then mkdir html ; fi
-cd html && gtkdoc-mkhtml libxslt ../$(DOC_MAIN_SGML_FILE)
+xml: sgml
+ if test -d xml ; then rm xml/* ; else mkdir xml ; fi
+ -@(for s in sgml/*.sgml ; do name=`basename $$s .sgml` ; \
+ echo '<!DOCTYPE refentry [ <!ENTITY nbsp "&#x00A0;"> ]>' > \
+ xml/"$$name".xml ;\
+ grep -v "^<colspec" $$s >> xml/"$$name".xml ; done)
+
+libxslt-api.xml libxslt-refs.xml: xml parsedecl.py libxslt-decl.txt libxslt-decl-list.txt
+ -(./parsedecl.py)
+
+api: libxslt-api.xml libxslt-refs.xml
+
clean-local:
rm -f *~ *.bak *.hierarchy *.signals *-unused.txt