* Enable man2ps to work without hard-coding the locations of groff or dpost.

* Re-add whitespace fluff to {dvi,dtl}.doc --- minimize change to original package.
* Enable man2ps (and hence doc) targets in Makefile to build out of the box.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14359 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2006-07-07 14:05:23 +00:00
parent 9c5a0331a3
commit 9a88b1d8be
4 changed files with 9 additions and 10 deletions

View File

@ -60,12 +60,11 @@ DTL_DBN = $(DOCS) $(SRC) $(TESTS)
$(DITROFF) -man -Tascii $< | $(COL) >$@
.man.ps:
$(MAN2PS) < $< > $@
$(MAN2PS) $< > $@
#=======================================================================
#all: dtl check doc
all: dtl check
all: dtl check doc
doc: dt2dv.hlp dv2dt.hlp dt2dv.ps dv2dt.ps

View File

@ -20,16 +20,16 @@ case `basename $0` in
esac
# We can use either GNU groff or Sun Solaris troff + dpost
if [ -x /usr/local/bin/groff ]
if [ which groff > /dev/null ]
then # GNU groff
TROFF="groff $FORMAT"
TROFF2PS="cat"
elif [ -x /usr/lib/lp/postscript/dpost ]
elif [ which dpost > /dev/null ]
then # Solaris 2.1
TROFF="troff $FORMAT"
TROFF2PS="/usr/lib/lp/postscript/dpost"
else
echo "Cannot find troff-to-PostScript filter"
echo "Cannot find troff-to-PostScript filter" >&2
exit 1
fi