aboutsummaryrefslogtreecommitdiff
path: root/doc/user/user.skb
diff options
context:
space:
mode:
authorLudovic Court`es2006-07-24 08:15:35 +0000
committerLudovic Court`es2006-07-24 08:15:35 +0000
commit3af9f58fbfe8eacf49e88db81b9e809d5fd8bc0a (patch)
tree3395b27ce10e495f89688a8521b63df69bb100d5 /doc/user/user.skb
parent06e595c745c300a6fd2130633539ac682cb0b8e9 (diff)
downloadskribilo-3af9f58fbfe8eacf49e88db81b9e809d5fd8bc0a.tar.gz
skribilo-3af9f58fbfe8eacf49e88db81b9e809d5fd8bc0a.tar.lz
skribilo-3af9f58fbfe8eacf49e88db81b9e809d5fd8bc0a.zip
Detect Ploticus at configuration-time and decide how to build the doc.
* configure.ac: Look for `ploticus' or `pl'. Create an AM conditional. * doc/user/Makefile.am (BUILT_SOURCES): Set to `doc-config.scm'. (html_DATA): New, set to `user.html'. (ps_DATA): Likewise. (doc-config.scm): New target. * doc/user/user.skb: Load `doc-config.scm' and update `%ploticus-program' accordingly. Decide whether or not to include `pie.skb'. * src/guile/skribilo/package/pie.scm: Export `%ploticus-program' and `%ploticus-debug?'. git-archimport-id: lcourtes@laas.fr--2005-libre/skribilo--devo--1.2--patch-26
Diffstat (limited to 'doc/user/user.skb')
-rw-r--r--doc/user/user.skb7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/user/user.skb b/doc/user/user.skb
index 82e614e..68c3d23 100644
--- a/doc/user/user.skb
+++ b/doc/user/user.skb
@@ -23,6 +23,11 @@
(use-modules (skribilo package eq)
(skribilo package pie))
+;; Load the compile-time configuration file.
+(load "doc-config.scm")
+
+(if %have-ploticus? (set! %ploticus-program %ploticus-path))
+
;*---------------------------------------------------------------------*/
;* HTML custom */
;*---------------------------------------------------------------------*/
@@ -138,7 +143,7 @@ as HTML, Info pages, man pages, Postscript, etc.]))))
(include "eq.skb")
;;; Pie charts
-(include "pie.skb")
+(if %have-ploticus? (include "pie.skb"))
;;; Standard Library
(include "lib.skb")