diff options
author | Ludovic Courtès | 2007-12-01 16:16:27 +0100 |
---|---|---|
committer | Ludovic Courtès | 2007-12-01 16:16:27 +0100 |
commit | 7e37e75f3c4fb757d63a5d1fe63dadb910a241c4 (patch) | |
tree | f6e92b4856a6642f410a6568fe4a140784860be3 | |
parent | 4f3a6891468a7834d2d655871c9db445538a8f8c (diff) | |
download | skribilo-7e37e75f3c4fb757d63a5d1fe63dadb910a241c4.tar.gz skribilo-7e37e75f3c4fb757d63a5d1fe63dadb910a241c4.tar.lz skribilo-7e37e75f3c4fb757d63a5d1fe63dadb910a241c4.zip |
doc: Add support for `ps2pdf'.
* configure.ac: Look for `ps2pdf'.
* doc/user/Makefile.am (pdf_DATA): New.
(.ps.pdf): New rule.
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | doc/user/Makefile.am | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1873a4e..11596a6 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,10 @@ GUILE_MODULE_REQUIRED([srfi srfi-35]) AC_PATH_PROG([LOUT], [lout]) AM_CONDITIONAL([HAVE_LOUT], [test "x$LOUT" != "x"]) +# Look for `ps2pdf' from GhostScript. +AC_PATH_PROG([PS2PDF], [ps2pdf]) +AM_CONDITIONAL([HAVE_PS2PDF], [test "x$PS2PDF" != "x"]) + # Look for Ploticus. AC_PATH_PROGS([PLOTICUS], [ploticus pl]) AM_CONDITIONAL([HAVE_PLOTICUS], [test "x$PLOTICUS" != "x"]) diff --git a/doc/user/Makefile.am b/doc/user/Makefile.am index 3a83b20..d9d11bd 100644 --- a/doc/user/Makefile.am +++ b/doc/user/Makefile.am @@ -23,7 +23,11 @@ load_path = $(top_srcdir)/src/guile:$(top_srcdir)/src/guile/skribilo/package:$(t if HAVE_LOUT +if HAVE_PS2PDF +pdf_DATA = user.pdf +else ps_DATA = user.ps +endif .skb.lout: GUILE_LOAD_PATH=$(load_path):$$GUILE_LOAD_PATH \ @@ -34,6 +38,11 @@ ps_DATA = user.ps endif +if HAVE_PS2PDF +.ps.pdf: + $(PS2PDF) $(@:%.pdf=%.ps) +endif + if HAVE_PLOTICUS doc-config.scm: -echo "(define %have-ploticus? #t)" > $@ |