1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-03-21 12:12:55 +00:00
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
1996-09-08 01:27:58 +00:00
|
|
|
|
1997-12-17 12:04:53 +00:00
|
|
|
TMACOWN?= ${BINOWN}
|
|
|
|
TMACGRP?= ${BINGRP}
|
|
|
|
TMACMODE?= ${NOBINMODE}
|
1996-09-08 01:27:58 +00:00
|
|
|
TMACDIR?= /usr/share/tmac
|
|
|
|
MDOCDIR?= ${TMACDIR}/mdoc
|
1999-09-15 18:55:17 +00:00
|
|
|
LOCALEDIR?= ${MDOCDIR}/locale
|
1996-09-08 01:27:58 +00:00
|
|
|
|
2000-09-22 10:05:18 +00:00
|
|
|
MAN7= groff_ms.7 groff_me.7 groff_msafer.7
|
|
|
|
MLINKS= groff_ms.7 ms.7 groff_me.7 me.7 groff_msafer.7 msafer.7
|
1996-09-08 01:27:58 +00:00
|
|
|
LINKS= ${TMACDIR}/tmac.andoc ${TMACDIR}/tmac.an
|
|
|
|
|
1998-03-21 12:12:55 +00:00
|
|
|
CLEANFILES= ${MAN7} ${MDOCFILES} ${STRIPFILES} tmac.groff_an
|
1996-09-08 01:27:58 +00:00
|
|
|
|
|
|
|
FILES= tmac.andoc tmac.pic tmac.ps tmac.psnew tmac.psold\
|
1999-07-30 19:15:16 +00:00
|
|
|
tmac.pspic tmac.psatk tmac.dvi tmac.safer tmac.tty \
|
|
|
|
tmac.tty-char tmac.X tmac.Xps tmac.latin1 tmac.lj4 eqnrc \
|
2000-01-12 13:37:57 +00:00
|
|
|
troffrc tmac.arkup tmac.html
|
1996-09-08 01:27:58 +00:00
|
|
|
STRIPFILES= tmac.e tmac.s tmac.doc
|
|
|
|
MDOCFILES= doc-common doc-ditroff doc-nroff doc-syms
|
1999-09-11 19:56:05 +00:00
|
|
|
LOCALEFILES= locale-list koi8-r
|
1996-09-08 01:27:58 +00:00
|
|
|
|
1998-03-21 12:12:55 +00:00
|
|
|
all: ${MDOCFILES} ${STRIPFILES} tmac.groff_an
|
|
|
|
|
|
|
|
.for f in ${MDOCFILES} ${STRIPFILES}
|
|
|
|
$f: ${DIST_DIR}/$f
|
|
|
|
sed -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
tmac.groff_an: tmac.an
|
|
|
|
sed -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
|
1996-09-08 01:27:58 +00:00
|
|
|
|
|
|
|
beforeinstall:
|
1997-01-01 04:22:23 +00:00
|
|
|
${INSTALL} ${COPY} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
1998-03-21 12:12:55 +00:00
|
|
|
${MDOCFILES} ${DESTDIR}${MDOCDIR}
|
|
|
|
${INSTALL} ${COPY} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
|
|
${STRIPFILES} tmac.groff_an ${DESTDIR}${TMACDIR}
|
|
|
|
cd ${DIST_DIR}; \
|
|
|
|
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
|
|
${FILES} ${DESTDIR}${TMACDIR}
|
1999-09-11 19:56:05 +00:00
|
|
|
cd ${DIST_DIR}/locale; \
|
|
|
|
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
|
|
${LOCALEFILES} ${DESTDIR}${LOCALEDIR}
|
1998-03-21 12:12:55 +00:00
|
|
|
.if !exists(${DESTDIR}${TMACDIR}/man.local)
|
|
|
|
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
|
|
${DIST_DIR}/man.local ${DESTDIR}${TMACDIR}
|
|
|
|
.endif
|
1996-09-08 01:27:58 +00:00
|
|
|
|
|
|
|
.include "../Makefile.cfg"
|
|
|
|
.include <bsd.prog.mk>
|