summaryrefslogtreecommitdiff
path: root/doc/user/Makefile.am
diff options
context:
space:
mode:
authorLudovic Courtès2008-01-22 17:27:37 +0100
committerLudovic Courtès2008-01-22 17:27:37 +0100
commitffd3ed37343917e87d27acb38a377686e866d741 (patch)
tree9015e7f525cace5f818050e2fa829875cb021e97 /doc/user/Makefile.am
parentafc4870d9d13c217cfbbff2c68fa658fb3ef274e (diff)
downloadskribilo-ffd3ed37343917e87d27acb38a377686e866d741.tar.gz
skribilo-ffd3ed37343917e87d27acb38a377686e866d741.tar.lz
skribilo-ffd3ed37343917e87d27acb38a377686e866d741.zip
doc: Remove need to `doc-config.scm'.
* doc/user/Makefile.am (BUILT_SOURCES): Remove. (skrflags): Define `%have-ploticus?' and `%ploticus-path' using `-e'. (doc-config.scm): Remove. * doc/user/user.skb: Don't load `doc-config.scm'.
Diffstat (limited to 'doc/user/Makefile.am')
-rw-r--r--doc/user/Makefile.am20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/user/Makefile.am b/doc/user/Makefile.am
index 4f0e16f..014e315 100644
--- a/doc/user/Makefile.am
+++ b/doc/user/Makefile.am
@@ -23,7 +23,6 @@ EXTRA_DIST += src/api1.skb \
src/start3.skb src/start4.skb src/start5.skb
-BUILT_SOURCES = doc-config.scm
html_DATA = user.html
dist_html_DATA = skribilo.css
CLEANFILES = $(BUILT_SOURCES) $(html_DATA)
@@ -35,6 +34,16 @@ skrflags = -I $(srcdir) -P $(top_srcdir)/doc/img \
-e '(define %top-srcdir "$(top_srcdir)")' \
-e '(define %top-builddir "$(top_builddir)")'
skrflags += --compat=skribe
+
+if HAVE_PLOTICUS
+skrflags += -e "(define %have-ploticus? (= 1 1))" \
+ -e "(define %ploticus-path \"$(PLOTICUS)\")"
+else
+skrflags += -e "(define %have-ploticus? (= 0 1))" \
+ -e "(define %ploticus-path (= 0 1))"
+endif
+
+
load_path = $(top_srcdir)/doc/modules
@@ -68,15 +77,6 @@ if HAVE_PS2PDF
$(PS2PDF) $(@:%.pdf=%.ps)
endif
-if HAVE_PLOTICUS
-doc-config.scm:
- echo "(define %have-ploticus? #t)" > $@
- echo "(define %ploticus-path \"$(PLOTICUS)\")" >> $@
-else
-doc-config.scm:
- echo "(define %have-ploticus? #f) (define %ploticus-path #f)" > $@
-endif
-
# Install/uninstall files not listed in `html_DATA'.
install-data-hook: