[kupfer] help: Add Makefile for building .html pages
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] help: Add Makefile for building .html pages
- Date: Mon, 29 Mar 2010 23:22:39 +0000 (UTC)
commit c30d2ff44c4265243d1727c4bd900fc9afcf31c7
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Mar 30 01:18:39 2010 +0200
help: Add Makefile for building .html pages
This makefile is useful while writing documentation, so you can see
immediately what the documentation looks like.
Later we can use this to provide an optional HTML doc install.
help/C/Makefile | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/help/C/Makefile b/help/C/Makefile
new file mode 100644
index 0000000..c936acd
--- /dev/null
+++ b/help/C/Makefile
@@ -0,0 +1,24 @@
+pages=$(wildcard *.page)
+htmls=$(patsubst %.page,%.html,$(pages))
+
+all: $(htmls) index.cache
+
+index.cache : $(pages)
+ echo '<cache xmlns="http://projectmallard.org/1.0/">' > $ in
+ for page in $(pages); do \
+ echo "<page href='$$page'/>" >> $ in; \
+ done
+ echo '</cache>' >> $ in
+ xsltproc `pkg-config --variable xsltdir gnome-doc-utils`/mallard/utils/mal2cache.xsl $ in | xmllint --format - > $@
+ rm $ in
+
+$(htmls) : index.cache
+$(htmls) : %.html : %.page
+ xsltproc \
+ --stringparam mal.cache.file `pwd`/index.cache \
+ --param mal.chunk.chunk_top 1 \
+ `pkg-config --variable mal2html gnome-doc-utils` $<
+
+.PHONY: clean
+clean:
+ rm index.cache *.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]