[shotwell] Use yelp-build to generate HTML docs



commit ea5c5058299a45eedeb311c25ed66f88d0fa7eb4
Author: Jens Georg <mail jensge org>
Date:   Tue May 24 19:41:29 2016 +0200

    Use yelp-build to generate HTML docs
    
    Signed-off-by: Jens Georg <mail jensge org>

 Makefile        |    3 +--
 help/C/Makefile |   25 +++++++++----------------
 2 files changed, 10 insertions(+), 18 deletions(-)
---
diff --git a/Makefile b/Makefile
index a1f2b9f..9cf25dc 100644
--- a/Makefile
+++ b/Makefile
@@ -293,8 +293,7 @@ EXT_PKG_VERSIONS = \
        libxml-2.0 >= 2.6.32 \
        rest-0.7 >= 0.7 \
        sqlite3 >= 3.5.9 \
-       webkit2gtk-4.0 \
-       gnome-doc-utils
+       webkit2gtk-4.0
 
 DIRECT_LIBS_VERSIONS =
 
diff --git a/help/C/Makefile b/help/C/Makefile
index df422c7..da855fb 100644
--- a/help/C/Makefile
+++ b/help/C/Makefile
@@ -9,27 +9,20 @@
 #
 
 pages=$(wildcard *.page)
-htmls=$(patsubst %.page,%.html,$(pages))
 
-all: $(htmls) index.cache
+all: html.stamp index.cache
 
 index.cache : $(pages)
-       echo '<cache:cache xmlns:cache="http://projectmallard.org/cache/1.0/"; 
xmlns="http://projectmallard.org/1.0/";>' > index.temp
-       for page in $(pages); do \
-         echo "<page cache:href='file://`pwd`/$$page'/>" >> index.temp; \
-       done
-       echo '</cache:cache>' >> index.temp
-       xsltproc `pkg-config --variable xsltdir gnome-doc-utils`/mallard/cache/mal-cache.xsl index.temp > 
index.cache
-       rm index.temp
+       yelp-build cache $(pages)
 
-$(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` $<
+html.stamp: index.cache $(pages)
+       @rm -f html.stamp
+       mkdir html
+       yelp-build html -c index.cache -o html .
+       @touch html.stamp
 
 .PHONY: clean
 clean:
-       rm -f index.cache *.html index.css index.temp
+       rm -rf html
+       rm -f index.cache html.stamp
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]