54 lines
1.7 KiB
Makefile
54 lines
1.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
TMACOWN?= ${BINOWN}
|
|
TMACGRP?= ${BINGRP}
|
|
TMACMODE?= ${NOBINMODE}
|
|
TMACDIR?= /usr/share/tmac
|
|
MDOCDIR?= ${TMACDIR}/mdoc
|
|
LOCALEDIR?= ${MDOCDIR}/locale
|
|
|
|
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
|
|
LINKS= ${TMACDIR}/tmac.andoc ${TMACDIR}/tmac.an
|
|
|
|
CLEANFILES= ${MAN7} ${MDOCFILES} ${STRIPFILES} tmac.groff_an
|
|
|
|
FILES= tmac.andoc tmac.pic tmac.ps tmac.psnew tmac.psold\
|
|
tmac.pspic tmac.psatk tmac.dvi tmac.safer tmac.tty \
|
|
tmac.tty-char tmac.X tmac.Xps tmac.latin1 tmac.lj4 eqnrc \
|
|
troffrc tmac.arkup tmac.html
|
|
STRIPFILES= tmac.e tmac.s tmac.doc
|
|
MDOCFILES= doc-common doc-ditroff doc-nroff doc-syms
|
|
LOCALEFILES= locale-list koi8-r
|
|
|
|
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}
|
|
|
|
beforeinstall:
|
|
${INSTALL} ${COPY} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
${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}
|
|
cd ${DIST_DIR}/locale; \
|
|
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
${LOCALEFILES} ${DESTDIR}${LOCALEDIR}
|
|
.if !exists(${DESTDIR}${TMACDIR}/man.local)
|
|
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
${DIST_DIR}/man.local ${DESTDIR}${TMACDIR}
|
|
.endif
|
|
|
|
.include "../Makefile.cfg"
|
|
.include <bsd.prog.mk>
|