* Fixed a couple of $(srcdir) / $(builddir) mistakes in the doc rules.

git-svn-id: svn://svn.zoy.org/elk/trunk@218 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
sam 2003-09-28 11:15:47 +00:00
parent 8192139a2b
commit d2ec72e374
11 changed files with 135 additions and 124 deletions

View File

@ -6,25 +6,26 @@ doc_DATA = bitstring.ps
docdir = $(datadir)/doc/@PACKAGE@/ps docdir = $(datadir)/doc/@PACKAGE@/ps
endif endif
MANUAL= bitstring MANUAL = $(srcdir)/bitstring.ms
TROFF= groff -ms -t TROFF = groff -ms -t
UNROFF= unroff -ms UNROFF = unroff -ms
bitstring.ps: bitstring.ms index.ms bitstring.ps: $(MANUAL) index.ms
(cat bitstring.ms ../util/tmac.index index.ms; echo ".Tc")\ (cat $(MANUAL) $(srcdir)/../util/tmac.index index.ms; echo ".Tc") \
| $(TROFF) 2> /dev/null > bitstring.ps | $(TROFF) 2> /dev/null > bitstring.ps
bitstring.html: bitstring.ms bitstring.html: $(MANUAL)
(cat $?; echo ".Tc") | $(UNROFF) document=bitstring (cat $?; echo ".Tc") | $(UNROFF) document=bitstring
index.ms: bitstring.ms index.raw index.ms: $(MANUAL) index.raw
sort -f -t'#' +1 -3 +0n index.raw | $(AWK) -f ../util/fixindex.awk\ sort -f -t'#' +1 -3 +0n index.raw \
| $(AWK) -f ../util/block.awk >index.ms | $(AWK) -f $(srcdir)/../util/fixindex.awk \
| $(AWK) -f $(srcdir)/../util/block.awk >index.ms
index.raw: bitstring.ms index.raw: $(MANUAL)
$(TROFF) bitstring.ms 2> index.raw >/dev/null $(TROFF) $(MANUAL) 2> index.raw >/dev/null
check: check:
checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] bitstring.ms |\ checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] $(MANUAL) \
grep -v "Empty command" | grep -v "Empty command"

View File

@ -6,28 +6,30 @@ doc_DATA = cprog.ps
docdir = $(datadir)/doc/@PACKAGE@/ps docdir = $(datadir)/doc/@PACKAGE@/ps
endif endif
TROFF= groff -ms -t MANUAL = $(srcdir)/cprog.ms
UNROFF= unroff -ms TROFF = groff -ms -t
MKINDEX= $(AWK) -f ../util/mkindex.awk UNROFF = unroff -ms
MKINDEX = $(AWK) -f $(srcdir)/../util/mkindex.awk
cprog.ps: cprog.ms side.ref side.inx cprog.ps: $(MANUAL) side.ref side.inx
$(MKINDEX) cprog.ms | sed -f side.ref | $(TROFF) 2> /dev/null > $@ $(MKINDEX) $(MANUAL) | sed -f side.ref | $(TROFF) 2> /dev/null > $@
side.ref: side side.ref: side
grep '^[sS]' < side | sed -e 's/\.\//\//' > side.ref grep '^[sS]' < side | sed -e 's/\.\//\//' > side.ref
side.inx: side side.inx: side
egrep -v '^s' side | sort -f -t'#' +1 -3 +0n | \ egrep -v '^s' side | sort -f -t'#' +1 -3 +0n | \
$(AWK) -f ../util/fixindex.awk | $(AWK) -f ../util/block.awk \ $(AWK) -f $(srcdir)/../util/fixindex.awk | \
$(AWK) -f $(srcdir)/../util/block.awk \
> side.inx > side.inx
side: cprog.ms side: $(MANUAL)
rm -f side side.inx && printf "" > side.inx rm -f side side.inx && printf "" > side.inx
$(MKINDEX) $? | $(TROFF) 2>side >/dev/null $(MKINDEX) $? | $(TROFF) 2>side >/dev/null
cprog.html: cprog.ms side.ref cprog.html: $(MANUAL) side.ref
$(MKINDEX) cprog.ms | sed -f side.ref | $(UNROFF) document=cprog $(MKINDEX) $(MANUAL) | sed -f side.ref | $(UNROFF) document=cprog
check: check:
cknr -c.Tc -a.Es.Ee.Cs.Ce cprog.ms cknr -c.Tc -a.Es.Ee.Cs.Ce $(MANUAL)

View File

@ -6,25 +6,26 @@ doc_DATA = kernel.ps
docdir = $(datadir)/doc/@PACKAGE@/ps docdir = $(datadir)/doc/@PACKAGE@/ps
endif endif
MANUAL= kernel MANUAL = $(srcdir)/kernel.ms
TROFF= groff -ms -t TROFF = groff -ms -t
UNROFF= unroff -ms UNROFF = unroff -ms
kernel.ps: kernel.ms index.ms kernel.ps: $(MANUAL) index.ms
(cat kernel.ms ../util/tmac.index index.ms; echo ".Tc")\ (cat $(MANUAL) $(srcdir)/../util/tmac.index index.ms; echo ".Tc") \
| $(TROFF) 2> /dev/null > kernel.ps | $(TROFF) 2> /dev/null > kernel.ps
kernel.html: kernel.ms kernel.html: $(MANUAL)
(cat $?; echo ".Tc") | $(UNROFF) document=kernel (cat $?; echo ".Tc") | $(UNROFF) document=kernel
index.ms: kernel.ms index.raw index.ms: $(MANUAL) index.raw
sort -f -t'#' +1 -3 +0n index.raw | $(AWK) -f ../util/fixindex.awk\ sort -f -t'#' +1 -3 +0n index.raw \
| $(AWK) -f ../util/block.awk >index.ms | $(AWK) -f $(srcdir)/../util/fixindex.awk \
| $(AWK) -f $(srcdir)/../util/block.awk >index.ms
index.raw: kernel.ms index.raw: $(MANUAL)
$(TROFF) kernel.ms 2> index.raw >/dev/null $(TROFF) $(MANUAL) 2> index.raw >/dev/null
check: check:
checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] kernel.ms |\ checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] $(MANUAL) \
grep -v "Empty command" | grep -v "Empty command"

View File

@ -11,10 +11,10 @@ endif
TROFF= groff -man -t TROFF= groff -man -t
UNROFF= unroff -man UNROFF= unroff -man
elk.ps: elk.1 elk.ps: $(srcdir)/elk.1
$(TROFF) $? > $@ $(TROFF) $? > $@
elk.1.html: elk.1 elk.1.html: $(srcdir)/elk.1
$(UNROFF) $? $(UNROFF) $?
install-data-hook: install-data-hook:

View File

@ -6,25 +6,26 @@ doc_DATA = oops.ps
docdir = $(datadir)/doc/@PACKAGE@/ps docdir = $(datadir)/doc/@PACKAGE@/ps
endif endif
MANUAL= oops MANUAL = $(srcdir)/oops.ms
TROFF= groff -ms -t TROFF = groff -ms -t
UNROFF= unroff -ms UNROFF = unroff -ms
oops.ps: oops.ms index.ms oops.ps: $(MANUAL) index.ms
(cat oops.ms ../util/tmac.index index.ms; echo ".Tc")\ (cat $(MANUAL) $(srcdir)/../util/tmac.index index.ms; echo ".Tc") \
| $(TROFF) 2> /dev/null > oops.ps | $(TROFF) 2> /dev/null > oops.ps
oops.html: oops.ms oops.html: $(MANUAL)
(cat $?; echo ".Tc") | $(UNROFF) document=oops (cat $?; echo ".Tc") | $(UNROFF) document=oops
index.ms: oops.ms index.raw index.ms: $(MANUAL) index.raw
sort -f -t'#' +1 -3 +0n index.raw | $(AWK) -f ../util/fixindex.awk\ sort -f -t'#' +1 -3 +0n index.raw \
| $(AWK) -f ../util/block.awk >index.ms | $(AWK) -f $(srcdir)/../util/fixindex.awk \
| $(AWK) -f $(srcdir)/../util/block.awk >index.ms
index.raw: oops.ms index.raw: $(MANUAL)
$(TROFF) oops.ms 2> index.raw >/dev/null $(TROFF) $(MANUAL) 2> index.raw >/dev/null
check: check:
checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] oops.ms |\ checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] $(MANUAL) \
grep -v "Empty command" | grep -v "Empty command"

View File

@ -6,25 +6,26 @@ doc_DATA = record.ps
docdir = $(datadir)/doc/@PACKAGE@/ps docdir = $(datadir)/doc/@PACKAGE@/ps
endif endif
MANUAL= record MANUAL = $(srcdir)/record.ms
TROFF= groff -ms -t TROFF = groff -ms -t
UNROFF= unroff -ms UNROFF = unroff -ms
record.ps: record.ms index.ms record.ps: $(MANUAL) index.ms
(cat record.ms ../util/tmac.index index.ms; echo ".Tc")\ (cat $(MANUAL) $(srcdir)/../util/tmac.index index.ms; echo ".Tc") \
| $(TROFF) 2> /dev/null > record.ps | $(TROFF) 2> /dev/null > record.ps
record.html: record.ms record.html: $(MANUAL)
(cat $?; echo ".Tc") | $(UNROFF) document=record (cat $?; echo ".Tc") | $(UNROFF) document=record
index.ms: record.ms index.raw index.ms: $(MANUAL) index.raw
sort -f -t'#' +1 -3 +0n index.raw | $(AWK) -f ../util/fixindex.awk\ sort -f -t'#' +1 -3 +0n index.raw \
| $(AWK) -f ../util/block.awk >index.ms | $(AWK) -f $(srcdir)/../util/fixindex.awk \
| $(AWK) -f $(srcdir)/../util/block.awk >index.ms
index.raw: record.ms index.raw: $(MANUAL)
$(TROFF) record.ms 2> index.raw >/dev/null $(TROFF) $(MANUAL) 2> index.raw >/dev/null
check: check:
checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] record.ms |\ checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] $(MANUAL) \
grep -v "Empty command" | grep -v "Empty command"

View File

@ -6,25 +6,26 @@ doc_DATA = regexp.ps
docdir = $(datadir)/doc/@PACKAGE@/ps docdir = $(datadir)/doc/@PACKAGE@/ps
endif endif
MANUAL= regexp MANUAL = $(srcdir)/regexp.ms
TROFF= groff -ms -t TROFF = groff -ms -t
UNROFF= unroff -ms UNROFF = unroff -ms
regexp.ps: regexp.ms index.ms regexp.ps: $(MANUAL) index.ms
(cat regexp.ms ../util/tmac.index index.ms; echo ".Tc")\ (cat $(MANUAL) $(srcdir)/../util/tmac.index index.ms; echo ".Tc") \
| $(TROFF) 2> /dev/null > regexp.ps | $(TROFF) 2> /dev/null > regexp.ps
regexp.html: regexp.ms regexp.html: $(MANUAL)
(cat $?; echo ".Tc") | $(UNROFF) document=regexp (cat $?; echo ".Tc") | $(UNROFF) document=regexp
index.ms: regexp.ms index.raw index.ms: $(MANUAL) index.raw
sort -f -t'#' +1 -3 +0n index.raw | $(AWK) -f ../util/fixindex.awk\ sort -f -t'#' +1 -3 +0n index.raw \
| $(AWK) -f ../util/block.awk >index.ms | $(AWK) -f $(srcdir)/../util/fixindex.awk \
| $(AWK) -f $(srcdir)/../util/block.awk >index.ms
index.raw: regexp.ms index.raw: $(MANUAL)
$(TROFF) regexp.ms 2> index.raw >/dev/null $(TROFF) $(MANUAL) 2> index.raw >/dev/null
check: check:
checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] regexp.ms |\ checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] $(MANUAL) \
grep -v "Empty command" | grep -v "Empty command"

View File

@ -6,25 +6,26 @@ doc_DATA = unix.ps
docdir = $(datadir)/doc/@PACKAGE@/ps docdir = $(datadir)/doc/@PACKAGE@/ps
endif endif
MANUAL= unix MANUAL = $(srcdir)/unix.ms
TROFF= groff -ms -t TROFF = groff -ms -t
UNROFF= unroff -ms UNROFF = unroff -ms
unix.ps: unix.ms index.ms unix.ps: $(MANUAL) index.ms
(cat unix.ms ../util/tmac.index index.ms; echo ".Tc")\ (cat $(MANUAL) $(srcdir)/../util/tmac.index index.ms; echo ".Tc") \
| $(TROFF) 2> /dev/null > unix.ps | $(TROFF) 2> /dev/null > unix.ps
unix.html: unix.ms unix.html: $(MANUAL)
(cat $?; echo ".Tc") | $(UNROFF) document=unix (cat $?; echo ".Tc") | $(UNROFF) document=unix
index.ms: unix.ms index.raw index.ms: $(MANUAL) index.raw
sort -f -t'#' +1 -3 +0n index.raw | $(AWK) -f ../util/fixindex.awk\ sort -f -t'#' +1 -3 +0n index.raw \
| $(AWK) -f ../util/block.awk >index.ms | $(AWK) -f $(srcdir)/../util/fixindex.awk \
| $(AWK) -f $(srcdir)/../util/block.awk >index.ms
index.raw: unix.ms index.raw: $(MANUAL)
$(TROFF) unix.ms 2> index.raw >/dev/null $(TROFF) $(MANUAL) 2> index.raw >/dev/null
check: check:
checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] unix.ms |\ checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] $(MANUAL) \
grep -v "Empty command" | grep -v "Empty command"

View File

@ -6,15 +6,16 @@ doc_DATA = usenix.ps
docdir = $(datadir)/doc/@PACKAGE@/ps docdir = $(datadir)/doc/@PACKAGE@/ps
endif endif
TROFF= groff -ms MANUAL = $(srcdir)/usenix.ms
UNROFF= unroff -ms TROFF = groff -ms
UNROFF = unroff -ms
usenix.ps: usenix.ms tmp.ref usenix.ps: $(MANUAL) tmp.ref
sed -f tmp.ref usenix.ms | $(TROFF) 2> /dev/null > usenix.ps sed -f tmp.ref $(MANUAL) | $(TROFF) 2> /dev/null > usenix.ps
usenix.html: usenix.ms tmp.ref usenix.html: $(MANUAL) tmp.ref
sed -f tmp.ref usenix.ms | $(UNROFF) document=usenix sed -f tmp.ref $(MANUAL) | $(UNROFF) document=usenix
tmp.ref: usenix.ms tmp.ref: $(MANUAL)
$(TROFF) usenix.ms 2> tmp.ref >/dev/null $(TROFF) $(MANUAL) 2> tmp.ref >/dev/null

View File

@ -6,25 +6,26 @@ doc_DATA = xlib.ps
docdir = $(datadir)/doc/@PACKAGE@/ps docdir = $(datadir)/doc/@PACKAGE@/ps
endif endif
MANUAL= xlib MANUAL = $(srcdir)/xlib.ms
TROFF= groff -ms -t TROFF = groff -ms -t
UNROFF= unroff -ms UNROFF = unroff -ms
xlib.ps: xlib.ms index.ms xlib.ps: $(MANUAL) index.ms
(cat xlib.ms ../util/tmac.index index.ms; echo ".Tc")\ (cat $(MANUAL) $(srcdir)/../util/tmac.index index.ms; echo ".Tc") \
| $(TROFF) 2> /dev/null > xlib.ps | $(TROFF) 2> /dev/null > xlib.ps
xlib.html: xlib.ms xlib.html: $(MANUAL)
(cat $?; echo ".Tc") | $(UNROFF) document=xlib (cat $?; echo ".Tc") | $(UNROFF) document=xlib
index.ms: xlib.ms index.raw index.ms: $(MANUAL) index.raw
sort -f -t'#' +1 -3 +0n index.raw | $(AWK) -f ../util/fixindex.awk\ sort -f -t'#' +1 -3 +0n index.raw \
| $(AWK) -f ../util/block.awk >index.ms | $(AWK) -f $(srcdir)/../util/fixindex.awk \
| $(AWK) -f $(srcdir)/../util/block.awk >index.ms
index.raw: xlib.ms index.raw: $(MANUAL)
$(TROFF) xlib.ms 2> index.raw >/dev/null $(TROFF) $(MANUAL) 2> index.raw >/dev/null
check: check:
checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] xlib.ms |\ checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] $(MANUAL) \
grep -v "Empty command" | grep -v "Empty command"

View File

@ -6,25 +6,26 @@ doc_DATA = xt.ps
docdir = $(datadir)/doc/@PACKAGE@/ps docdir = $(datadir)/doc/@PACKAGE@/ps
endif endif
MANUAL= xt MANUAL = $(srcdir)/xt.ms
TROFF= groff -ms -t TROFF = groff -ms -t
UNROFF= unroff -ms UNROFF = unroff -ms
xt.ps: xt.ms index.ms xt.ps: $(MANUAL) index.ms
(cat xt.ms ../util/tmac.index index.ms; echo ".Tc")\ (cat $(MANUAL) $(srcdir)/../util/tmac.index index.ms; echo ".Tc") \
| $(TROFF) 2> /dev/null > xt.ps | $(TROFF) 2> /dev/null > xt.ps
xt.html: xt.ms xt.html: $(MANUAL)
(cat $?; echo ".Tc") | $(UNROFF) document=xt (cat $?; echo ".Tc") | $(UNROFF) document=xt
index.ms: xt.ms index.raw index.ms: $(MANUAL) index.raw
sort -f -t'#' +1 -3 +0n index.raw | $(AWK) -f ../util/fixindex.awk\ sort -f -t'#' +1 -3 +0n index.raw \
| $(AWK) -f ../util/block.awk >index.ms | $(AWK) -f $(srcdir)/../util/fixindex.awk \
| $(AWK) -f $(srcdir)/../util/block.awk >index.ms
index.raw: xt.ms index.raw: $(MANUAL)
$(TROFF) xt.ms 2> index.raw >/dev/null $(TROFF) $(MANUAL) 2> index.raw >/dev/null
check: check:
checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] xt.ms |\ checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] $(MANUAL) \
grep -v "Empty command" | grep -v "Empty command"