From 7e37e75f3c4fb757d63a5d1fe63dadb910a241c4 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 1 Dec 2007 16:16:27 +0100 Subject: doc: Add support for `ps2pdf'. * configure.ac: Look for `ps2pdf'. * doc/user/Makefile.am (pdf_DATA): New. (.ps.pdf): New rule. --- configure.ac | 4 ++++ doc/user/Makefile.am | 9 +++++++++ 2 files changed, 13 insertions(+) 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)" > $@ -- cgit v1.2.3