freebsd-dev/gnu/usr.bin/groff/tmac/Makefile

49 lines
1.5 KiB
Makefile
Raw Normal View History

1996-09-08 01:27:58 +00:00
# Makefile for groff macros
TMACOWN?= bin
TMACGRP?= bin
TMACMODE?= 444
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\
tmac.Xps tmac.latin1 eqnrc troffrc
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} \
${DISTDIR}/$$f ${DESTDIR}${TMACDIR}; \
done
sed -f ${DISTDIR}/strip.sed ${DISTDIR}/tmac.an >tmac.groff_an
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
tmac.groff_an ${DESTDIR}${TMACDIR}
for f in ${STRIPFILES}; do \
rm -f temp; \
sed -f ${DISTDIR}/strip.sed ${DISTDIR}/$$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 ${DISTDIR}/strip.sed ${DISTDIR}/$$f >temp; \
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
temp ${DESTDIR}${MDOCDIR}/$$f; \
done
test -f ${DESTDIR}${TMACDIR}/man.local || \
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
${DISTDIR}/man.local ${DESTDIR}${TMACDIR}
.include "../Makefile.cfg"
.include <bsd.prog.mk>