1995-01-15 08:30:25 +00:00
|
|
|
# Makefile for groff macros
|
|
|
|
|
|
|
|
TMACOWN?= bin
|
|
|
|
TMACGRP?= bin
|
|
|
|
TMACMODE?= 444
|
|
|
|
TMACDIR?= /usr/share/tmac
|
1995-01-19 15:58:34 +00:00
|
|
|
MDOCDIR?= ${TMACDIR}/mdoc
|
1995-01-15 08:30:25 +00:00
|
|
|
|
|
|
|
MAN7= groff_ms.7 me.7
|
|
|
|
MLINKS= groff_ms.7 ms.7
|
1995-01-19 15:58:34 +00:00
|
|
|
LINKS= ${TMACDIR}/tmac.andoc ${TMACDIR}/tmac.an
|
1995-01-15 08:30:25 +00:00
|
|
|
|
|
|
|
MANDEPEND= ${MAN7}
|
1995-01-17 18:49:52 +00:00
|
|
|
CLEANFILES+= temp ${MANDEPEND} tmac.groff_an
|
1995-01-15 08:30:25 +00:00
|
|
|
|
1995-01-17 18:49:52 +00:00
|
|
|
FILES= tmac.andoc tmac.pic tmac.ps tmac.psnew tmac.psold\
|
1995-01-15 08:30:25 +00:00
|
|
|
tmac.pspic tmac.psatk tmac.dvi tmac.tty tmac.tty-char tmac.X\
|
|
|
|
tmac.Xps tmac.latin1 eqnrc troffrc
|
1995-01-17 18:49:52 +00:00
|
|
|
STRIPFILES= tmac.e tmac.s tmac.doc tmac.doc.old
|
1995-01-15 08:30:25 +00:00
|
|
|
MDOCFILES= doc-common doc-ditroff doc-nroff doc-syms
|
|
|
|
|
|
|
|
|
1995-01-17 19:05:12 +00:00
|
|
|
beforeinstall:
|
1995-01-15 08:30:25 +00:00
|
|
|
for f in ${FILES}; do \
|
|
|
|
install -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
|
|
${.CURDIR}/$$f ${DESTDIR}${TMACDIR}; \
|
|
|
|
done
|
1995-01-17 18:31:07 +00:00
|
|
|
sed -f ${.CURDIR}/strip.sed ${.CURDIR}/tmac.an >tmac.groff_an
|
1995-01-15 08:30:25 +00:00
|
|
|
install -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
1995-01-17 18:31:07 +00:00
|
|
|
tmac.groff_an ${DESTDIR}${TMACDIR}
|
1995-01-15 08:30:25 +00:00
|
|
|
for f in ${STRIPFILES}; do \
|
|
|
|
rm -f temp; \
|
|
|
|
sed -f ${.CURDIR}/strip.sed ${.CURDIR}/$$f >temp; \
|
|
|
|
install -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
|
|
temp ${DESTDIR}${TMACDIR}/$$f; \
|
|
|
|
done
|
|
|
|
for f in ${MDOCFILES}; do \
|
|
|
|
rm -f temp; \
|
|
|
|
sed -f ${.CURDIR}/strip.sed ${.CURDIR}/$$f >temp; \
|
|
|
|
install -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
|
|
temp ${DESTDIR}${MDOCDIR}/$$f; \
|
|
|
|
done
|
1995-01-26 06:00:40 +00:00
|
|
|
test -f ${DESTDIR}${TMACDIR}/man.local || \
|
1995-01-15 08:30:25 +00:00
|
|
|
install -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
1995-01-26 06:00:40 +00:00
|
|
|
${.CURDIR}/man.local ${DESTDIR}${TMACDIR}
|
1995-01-15 08:30:25 +00:00
|
|
|
|
|
|
|
.include "../Makefile.cfg"
|
|
|
|
.include <bsd.prog.mk>
|