aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-10-23 19:04:00 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-10-23 19:04:00 +0000
commitdff088c507b0a0757565648d76f1fd1948fe3d2d (patch)
treef0213d16a7ec5ed35c5a91e08515b96bf632b466 /gnu
parenta09114536e08bc146bef81ae2d330b72a73bff67 (diff)
downloadsrc-dff088c507b0a0757565648d76f1fd1948fe3d2d.tar.gz
src-dff088c507b0a0757565648d76f1fd1948fe3d2d.zip
A crude temporary hack to fix building of ms(7) formatted documents
while I am working on a real fix.
Notes
Notes: svn path=/head/; revision=105813
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/groff/tmac/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/usr.bin/groff/tmac/Makefile b/gnu/usr.bin/groff/tmac/Makefile
index d32f620bddcc..a9a98734205b 100644
--- a/gnu/usr.bin/groff/tmac/Makefile
+++ b/gnu/usr.bin/groff/tmac/Makefile
@@ -14,6 +14,7 @@ MLINKS+= groff_me.7 me.7
MLINKS+= groff_mdoc.7 mdoc.7 groff_mdoc.7 mdoc.samples.7
CLEANFILES= ${MAN} ${MDOCFILES:S/$/-s/} ${STRIPFILES:S/$/-s/} ${SPECIALFILES:S/$/-s/}
+CLEANFILES+= troffrc-end.patched
NORMALFILES= mandoc.tmac andoc.tmac an-old.tmac \
me.tmac \
@@ -32,7 +33,7 @@ NORMALFILES= mandoc.tmac andoc.tmac an-old.tmac \
lbp.tmac \
html.tmac www.tmac \
eqnrc \
- troffrc troffrc-end \
+ troffrc \
hyphen.us
SPECIALFILES= an.tmac man.tmac s.tmac ms.tmac
STRIPFILES= e.tmac doc.tmac mdoc.local
@@ -40,6 +41,7 @@ MDOCFILES= doc-common doc-ditroff doc-nroff doc-syms \
fr.ISO8859-1 ru.KOI8-R
all: ${MDOCFILES:S/$/-s/} ${STRIPFILES:S/$/-s/} ${SPECIALFILES:S/$/-s/}
+all: troffrc-end.patched
.for f in ${MDOCFILES} ${STRIPFILES}
$f-s: $f
@@ -53,6 +55,9 @@ $f-s: $f
${.ALLSRC} > ${.TARGET}
.endfor
+troffrc-end.patched: troffrc-end
+ (cat ${.ALLSRC}; echo ".if n .do nop \X'tty: sgr 0'\c") > ${.TARGET}
+
beforeinstall:
cd ${DIST_DIR}; \
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
@@ -61,6 +66,8 @@ beforeinstall:
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
hyphen.ru ${DESTDIR}${TMACDIR}
cd ${.OBJDIR}
+ ${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
+ troffrc-end.patched ${DESTDIR}${TMACDIR}/troffrc-end
.for f in ${STRIPFILES} ${SPECIALFILES}
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
$f-s ${DESTDIR}${TMACDIR}/$f