1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-03-21 12:12:55 +00:00
|
|
|
|
1997-12-17 12:04:53 +00:00
|
|
|
TMACOWN?= ${BINOWN}
|
|
|
|
TMACGRP?= ${BINGRP}
|
|
|
|
TMACMODE?= ${NOBINMODE}
|
2000-12-05 19:15:36 +00:00
|
|
|
TMACDIR?= ${SHAREDIR}/tmac
|
1996-09-08 01:27:58 +00:00
|
|
|
MDOCDIR?= ${TMACDIR}/mdoc
|
|
|
|
|
2002-10-11 08:58:14 +00:00
|
|
|
MAN= groff_ms.7 groff_man.7 groff_me.7 groff_mdoc.7
|
|
|
|
MAN+= groff_trace.7 groff_www.7
|
|
|
|
MLINKS= groff_ms.7 ms.7
|
2001-04-17 12:37:18 +00:00
|
|
|
MLINKS+= groff_man.7 man.7
|
2000-12-05 19:15:36 +00:00
|
|
|
MLINKS+= groff_me.7 me.7
|
2001-04-17 12:37:18 +00:00
|
|
|
MLINKS+= groff_mdoc.7 mdoc.7 groff_mdoc.7 mdoc.samples.7
|
|
|
|
MLINKS+= groff_mwww.7 mwww.7
|
1996-09-08 01:27:58 +00:00
|
|
|
|
2001-04-17 12:37:18 +00:00
|
|
|
CLEANFILES= ${MAN} ${MDOCFILES:S/$/-s/} ${STRIPFILES:S/$/-s/} ${SPECIALFILES:S/$/-s/}
|
1996-09-08 01:27:58 +00:00
|
|
|
|
2001-04-17 12:37:18 +00:00
|
|
|
NORMALFILES= mandoc.tmac andoc.tmac an-old.tmac \
|
|
|
|
me.tmac \
|
|
|
|
mdoc.tmac \
|
|
|
|
pic.tmac \
|
|
|
|
a4.tmac \
|
2002-10-11 08:58:14 +00:00
|
|
|
ec.tmac \
|
2001-04-17 12:37:18 +00:00
|
|
|
safer.tmac \
|
|
|
|
trace.tmac \
|
|
|
|
ps.tmac psold.tmac pspic.tmac psatk.tmac \
|
|
|
|
dvi.tmac \
|
2002-10-11 08:58:14 +00:00
|
|
|
tty.tmac tty-char.tmac \
|
|
|
|
latin1.tmac cp1047.tmac \
|
2001-04-17 12:37:18 +00:00
|
|
|
X.tmac Xps.tmac \
|
|
|
|
lj4.tmac \
|
2002-10-11 08:58:14 +00:00
|
|
|
lbp.tmac \
|
|
|
|
html.tmac www.tmac \
|
2001-04-17 12:37:18 +00:00
|
|
|
eqnrc \
|
|
|
|
troffrc troffrc-end \
|
|
|
|
hyphen.us
|
|
|
|
SPECIALFILES= an.tmac man.tmac s.tmac ms.tmac
|
|
|
|
STRIPFILES= e.tmac doc.tmac mdoc.local
|
2002-09-30 08:06:11 +00:00
|
|
|
MDOCFILES= doc-common doc-ditroff doc-nroff doc-syms \
|
2002-10-11 11:00:51 +00:00
|
|
|
fr.ISO8859-1 ru.KOI8-R
|
1996-09-08 01:27:58 +00:00
|
|
|
|
2001-04-17 12:37:18 +00:00
|
|
|
all: ${MDOCFILES:S/$/-s/} ${STRIPFILES:S/$/-s/} ${SPECIALFILES:S/$/-s/}
|
1998-03-21 12:12:55 +00:00
|
|
|
|
|
|
|
.for f in ${MDOCFILES} ${STRIPFILES}
|
2001-04-17 12:37:18 +00:00
|
|
|
$f-s: $f
|
1998-03-21 12:12:55 +00:00
|
|
|
sed -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
|
|
|
|
.endfor
|
|
|
|
|
2000-12-05 19:15:36 +00:00
|
|
|
.for f in ${SPECIALFILES}
|
2001-04-17 12:37:18 +00:00
|
|
|
$f-s: $f
|
|
|
|
sed -e "s;@TMAC_AN_PREFIX@;${tmac_an_prefix};g" \
|
|
|
|
-e "s;@TMAC_S_PREFIX@;${tmac_s_prefix};g" \
|
2000-12-05 19:15:36 +00:00
|
|
|
${.ALLSRC} > ${.TARGET}
|
|
|
|
.endfor
|
|
|
|
|
1996-09-08 01:27:58 +00:00
|
|
|
beforeinstall:
|
1998-03-21 12:12:55 +00:00
|
|
|
cd ${DIST_DIR}; \
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
2001-04-17 12:37:18 +00:00
|
|
|
${NORMALFILES} ${DESTDIR}${TMACDIR}
|
|
|
|
cd ${.CURDIR}; \
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
2001-04-17 12:37:18 +00:00
|
|
|
hyphen.us-ru ${DESTDIR}${TMACDIR}
|
2001-04-19 09:10:53 +00:00
|
|
|
cd ${.OBJDIR}
|
2001-04-17 12:37:18 +00:00
|
|
|
.for f in ${STRIPFILES} ${SPECIALFILES}
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
2001-04-17 12:37:18 +00:00
|
|
|
$f-s ${DESTDIR}${TMACDIR}/$f
|
|
|
|
.endfor
|
|
|
|
.for f in ${MDOCFILES}
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
2001-04-17 12:37:18 +00:00
|
|
|
$f-s ${DESTDIR}${MDOCDIR}/$f
|
|
|
|
.endfor
|
1998-03-21 12:12:55 +00:00
|
|
|
.if !exists(${DESTDIR}${TMACDIR}/man.local)
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
1998-03-21 12:12:55 +00:00
|
|
|
${DIST_DIR}/man.local ${DESTDIR}${TMACDIR}
|
|
|
|
.endif
|
1996-09-08 01:27:58 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|