From dca5f97635cd50c5a8f9c301794b51b28027d502 Mon Sep 17 00:00:00 2001 From: bert Date: Tue, 1 Mar 2005 15:56:07 +0000 Subject: [PATCH] New doc build system git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2208 c6295689-39f2-0310-b995-f0e70906c6a9 --- doc/Makefile | 19 +++++++++++++++++++ doc/src/api/api.xml | 1 - doc/src/api/html.xsl | 16 ++++++++++++++++ doc/src/api/man.xsl | 4 ++++ 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 doc/Makefile create mode 100644 doc/src/api/html.xsl create mode 100644 doc/src/api/man.xsl diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 00000000..5daf00c9 --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,19 @@ +XSLTPROC = xsltproc --xinclude + +default: + @echo -e "The following make targets are available:\n" + @echo -e "\thtml\t\tA single HTML page\n" + @echo -e "\tman\t\tMan pages for all functions\n" + +all: html man + +clean: + rm -rf html man + +html: + $(XSLTPROC) -o html/api.html src/api/html.xsl src/api/api.xml + +man: + $(XSLTPROC) -o man/ src/api/man.xsl src/api/api.xml + +.SILENT: diff --git a/doc/src/api/api.xml b/doc/src/api/api.xml index eda671d8..f62a1dbc 100644 --- a/doc/src/api/api.xml +++ b/doc/src/api/api.xml @@ -1,5 +1,4 @@ - + +]> + + + + + + + + \ No newline at end of file diff --git a/doc/src/api/man.xsl b/doc/src/api/man.xsl new file mode 100644 index 00000000..5074bbbd --- /dev/null +++ b/doc/src/api/man.xsl @@ -0,0 +1,4 @@ + + + + \ No newline at end of file