summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-07-19 07:35:08 +0000
committerwlemb <wlemb>2001-07-19 07:35:08 +0000
commit131e2a5c3e68c61ea2655269040ee4fd25032ffe (patch)
treeb1854e883e50b6e09aba0eb8f1e498c4e10c2cc6
parent8c62cb851ebbce6aba684a3d26c3703a530182f3 (diff)
downloadgroff-131e2a5c3e68c61ea2655269040ee4fd25032ffe.tar.gz
* doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
groff also.
-rwxr-xr-xdoc/Makefile26
1 files changed, 25 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 408e6e12..ab0f0c34 100755
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
+# Copyright (C) 1989, 1990, 1991, 1992, 2001 Free Software Foundation, Inc.
# Written by James Clark (jjc@jclark.com)
#
# This file is part of groff.
@@ -25,6 +25,24 @@ DOCS=meref.ps meintro.ps pic.ps pic.html homepage.html
MEMACROS=../tmac/tmac.e
SOELIM=../src/preproc/soelim/soelim
+groff_bin_dirs=\
+ ../src/roff/groff \
+ ../src/roff/troff \
+ ../src/preproc/pic \
+ ../src/preproc/eqn \
+ ../src/preproc/tbl \
+ ../src/preproc/grn \
+ ../src/preproc/refer \
+ ../src/preproc/soelim \
+ ../src/preproc/html \
+ ../src/devices/grops \
+ ../src/devices/grodvi \
+ ../src/devices/grotty \
+ ../src/devices/grolj4 \
+ ../src/devices/grolbp \
+ ../src/devices/grohtml
+groff_bin_path=`echo $(groff_bin_dirs) | sed -e 's| \+|:|g'`
+
version=`cat ../VERSION`
# No additional number if revision is zero
revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' ../REVISION`
@@ -47,18 +65,24 @@ all: $(DOCS)
.ms.html:
GROFF_TMAC_PATH=../tmac; \
export GROFF_TMAC_PATH; \
+ GROFF_BIN_PATH=$(groff_bin_path); \
+ export GROFF_BIN_PATH; \
sed -e "s;@VERSION@;$(version)$(revision);" $< \
| $(GROFF) -Thtml $(FFLAG) -U -ms >$@
.ms.ascii:
GROFF_TMAC_PATH=../tmac; \
export GROFF_TMAC_PATH; \
+ GROFF_BIN_PATH=$(groff_bin_path); \
+ export GROFF_BIN_PATH; \
sed -e "s;@VERSION@;$(version)$(revision);" $< \
| $(GROFF) -Tascii $(FFLAG) -U -ms -mwww >$@
.ms.ps:
GROFF_TMAC_PATH=../tmac; \
export GROFF_TMAC_PATH; \
+ GROFF_BIN_PATH=$(groff_bin_path); \
+ export GROFF_BIN_PATH; \
sed -e "s;@VERSION@;$(version)$(revision);" $< \
| $(GROFF) -Tps $(FFLAG) -U -ms -mwww >$@