summaryrefslogtreecommitdiff
path: root/tmac/Makefile.sub
diff options
context:
space:
mode:
authorwlemb <wlemb>2000-08-06 11:33:51 +0000
committerwlemb <wlemb>2000-08-06 11:33:51 +0000
commite2bdac31c0280f8ef3b0607cf8f3122a53f557d9 (patch)
treec47b624d5c4946f01f9457dec64ec648c1b81580 /tmac/Makefile.sub
parent954974ce728b12e429a1962dbeac8a6c4bf0c7ee (diff)
downloadgroff-e2bdac31c0280f8ef3b0607cf8f3122a53f557d9.tar.gz
Add support for new BSD-style man pages (with ".Dd" instead of
".TH"), so that "groff -man" understands both styles, even when running "groff -man" on a host whose system man page macros don't support ".Dd". * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old. (stamp-wrap): Source tmac.andoc first when wrapping man macros, in case the system man macros don't define Dd or TH. * tmac/tmac.an.old: Renamed from tmac/tmac.an. * tmac/tmac.an: New one-line file. * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming. * src/roff/troff/troff.man: Fixing typos.
Diffstat (limited to 'tmac/Makefile.sub')
-rw-r--r--tmac/Makefile.sub7
1 files changed, 5 insertions, 2 deletions
diff --git a/tmac/Makefile.sub b/tmac/Makefile.sub
index be06cc7c..dc59a36e 100644
--- a/tmac/Makefile.sub
+++ b/tmac/Makefile.sub
@@ -13,7 +13,7 @@ NORMALFILES=\
tmac.mandoc tmac.andoc tmac.pic tmac.ps tmac.psnew tmac.psold tmac.pspic \
tmac.psatk tmac.dvi tmac.tty tmac.tty-char tmac.X tmac.Xps tmac.latin1 \
tmac.lj4 eqnrc troffrc troffrc-end tmac.safer tmac.html tmac.markup \
- tmac.arkup tmac.a4 tmac.trace tmac.me tmac.mdoc
+ tmac.arkup tmac.a4 tmac.trace tmac.me tmac.mdoc tmac.an.old
SPECIALFILES=tmac.an tmac.s tmac.man tmac.ms
STRIPFILES=tmac.e tmac.doc tmac.doc.old
MDOCFILES=doc-common doc-ditroff doc-nroff doc-syms
@@ -73,7 +73,10 @@ stamp-wrap:
if test -n "$(tmac_wrap)"; then \
for m in ""$(tmac_wrap); do \
rm -f $$m-wrap; \
- echo .cp 1 >$$m-wrap; \
+ if test "$$m" = an; then \
+ echo .do mso tmac.andoc >>$$m-wrap; \
+ fi; \
+ echo .cp 1 >>$$m-wrap; \
echo .so $(sys_tmac_prefix)$$m >>$$m-wrap; \
done; \
fi