3 .include "../Makefile.inc"
7 TMACMODE?= ${NOBINMODE}
8 TMACDIR?= /usr/share/tmac
9 MDOCDIR?= ${TMACDIR}/mdoc
11 MAN7= groff_ms.7 me.7 msafer.7
12 MLINKS= groff_ms.7 ms.7 me.7 groff_me.7 msafer.7 groff_msafer.7
13 LINKS= ${TMACDIR}/tmac.andoc ${TMACDIR}/tmac.an
15 CLEANFILES= ${MAN7} ${MDOCFILES} ${STRIPFILES} tmac.groff_an
17 FILES= tmac.andoc tmac.pic tmac.ps tmac.psnew tmac.psold\
18 tmac.pspic tmac.psatk tmac.dvi tmac.safer tmac.tty \
19 tmac.tty-char tmac.X tmac.Xps tmac.latin1 tmac.lj4 eqnrc \
21 STRIPFILES= tmac.e tmac.s tmac.doc
22 MDOCFILES= doc-common doc-ditroff doc-nroff doc-syms
24 all: ${MDOCFILES} ${STRIPFILES} tmac.groff_an
26 .for f in ${MDOCFILES} ${STRIPFILES}
28 sed -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
31 tmac.groff_an: tmac.an
32 sed -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
35 ${INSTALL} ${COPY} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
36 ${MDOCFILES} ${DESTDIR}${MDOCDIR}
37 ${INSTALL} ${COPY} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
38 ${STRIPFILES} tmac.groff_an ${DESTDIR}${TMACDIR}
40 ${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
41 ${FILES} ${DESTDIR}${TMACDIR}
42 .if !exists(${DESTDIR}${TMACDIR}/man.local)
43 ${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
44 ${DIST_DIR}/man.local ${DESTDIR}${TMACDIR}
47 .include "../Makefile.cfg"
48 .include <bsd.prog.mk>