1996-09-08 01:27:58 +00:00
|
|
|
# Makefile for groff macros
|
|
|
|
|
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
|
|
|
|
|
|
|
|
MAN7= groff_ms.7 me.7
|
|
|
|
MLINKS= groff_ms.7 ms.7 me.7 groff_me.7
|
|
|
|
LINKS= ${TMACDIR}/tmac.andoc ${TMACDIR}/tmac.an
|
|
|
|
|
|
|
|
MANDEPEND= ${MAN7}
|
|
|
|
CLEANFILES+= temp ${MANDEPEND} tmac.groff_an
|
|
|
|
|
|
|
|
FILES= tmac.andoc tmac.pic tmac.ps tmac.psnew tmac.psold\
|
|
|
|
tmac.pspic tmac.psatk tmac.dvi tmac.tty tmac.tty-char tmac.X\
|
1996-09-11 22:16:59 +00:00
|
|
|
tmac.Xps tmac.latin1 tmac.lj4 eqnrc troffrc
|
1996-09-08 01:27:58 +00:00
|
|
|
STRIPFILES= tmac.e tmac.s tmac.doc
|
|
|
|
MDOCFILES= doc-common doc-ditroff doc-nroff doc-syms
|
|
|
|
|
|
|
|
|
|
|
|
beforeinstall:
|
|
|
|
for f in ${FILES}; do \
|
|
|
|
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
1996-09-09 18:05:29 +00:00
|
|
|
${DIST_DIR}/$$f ${DESTDIR}${TMACDIR}; \
|
1996-09-08 01:27:58 +00:00
|
|
|
done
|
1996-09-09 18:05:29 +00:00
|
|
|
sed -f ${DIST_DIR}/strip.sed ${DIST_DIR}/tmac.an >tmac.groff_an
|
1997-01-01 04:22:23 +00:00
|
|
|
${INSTALL} ${COPY} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
1996-09-08 01:27:58 +00:00
|
|
|
tmac.groff_an ${DESTDIR}${TMACDIR}
|
|
|
|
for f in ${STRIPFILES}; do \
|
|
|
|
rm -f temp; \
|
1996-09-09 18:05:29 +00:00
|
|
|
sed -f ${DIST_DIR}/strip.sed ${DIST_DIR}/$$f >temp; \
|
1997-01-01 04:22:23 +00:00
|
|
|
${INSTALL} ${COPY} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
1996-09-08 01:27:58 +00:00
|
|
|
temp ${DESTDIR}${TMACDIR}/$$f; \
|
|
|
|
done
|
|
|
|
for f in ${MDOCFILES}; do \
|
|
|
|
rm -f temp; \
|
1996-09-09 18:05:29 +00:00
|
|
|
sed -f ${DIST_DIR}/strip.sed ${DIST_DIR}/$$f >temp; \
|
1997-01-01 04:22:23 +00:00
|
|
|
${INSTALL} ${COPY} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
1996-09-08 01:27:58 +00:00
|
|
|
temp ${DESTDIR}${MDOCDIR}/$$f; \
|
|
|
|
done
|
|
|
|
test -f ${DESTDIR}${TMACDIR}/man.local || \
|
|
|
|
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
1996-09-09 18:05:29 +00:00
|
|
|
${DIST_DIR}/man.local ${DESTDIR}${TMACDIR}
|
1996-09-08 01:27:58 +00:00
|
|
|
|
|
|
|
.include "../Makefile.cfg"
|
|
|
|
.include <bsd.prog.mk>
|