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

69 lines
2.1 KiB
Makefile
Raw Normal View History

1999-08-27 23:37:10 +00:00
# $FreeBSD$
.include "../Makefile.inc"
1996-09-08 01:27:58 +00:00
TMACOWN?= ${BINOWN}
TMACGRP?= ${BINGRP}
TMACMODE?= ${NOBINMODE}
2000-12-05 19:15:36 +00:00
TMACDIR?= ${SHAREDIR}/tmac
1996-09-08 01:27:58 +00:00
MDOCDIR?= ${TMACDIR}/mdoc
1999-09-15 18:55:17 +00:00
LOCALEDIR?= ${MDOCDIR}/locale
1996-09-08 01:27:58 +00:00
2000-12-05 19:15:36 +00:00
MAN5= groff_tmac.5
MLINKS+= groff_tmac.5 tmac.5
MAN7= groff_ms.7 groff_man.7 groff_me.7 groff_msafer.7 groff_markup.7
MLINKS+= groff_ms.7 ms.7
MLINKS+= groff_me.7 me.7
MLINKS+= groff_msafer.7 msafer.7
MLINKS+= groff_markup.7 markup.7
LINKS= ${TMACDIR}/tmac.andoc ${TMACDIR}/tmac.an
1996-09-08 01:27:58 +00:00
2000-12-05 19:15:36 +00:00
CLEANFILES= ${MAN5} ${MAN7} ${MDOCFILES} ${STRIPFILES} ${SPECIALFILES}
CLEANFILES+= tmac.an-old
1996-09-08 01:27:58 +00:00
2000-12-05 19:15:36 +00:00
FILES= tmac.mandoc 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 tmac.lj4 eqnrc troffrc troffrc-end \
tmac.safer tmac.html tmac.markup tmac.arkup tmac.a4 \
tmac.trace tmac.me tmac.mdoc tmac.s tmac.lbp
STRIPFILES= tmac.e tmac.doc
2000-12-05 19:15:36 +00:00
SPECIALFILES= tmac.man tmac.ms
1996-09-08 01:27:58 +00:00
MDOCFILES= doc-common doc-ditroff doc-nroff doc-syms
1999-09-11 19:56:05 +00:00
LOCALEFILES= locale-list koi8-r
1996-09-08 01:27:58 +00:00
all: ${MDOCFILES} ${STRIPFILES} ${SPECIALFILES} tmac.an-old
.for f in ${MDOCFILES} ${STRIPFILES}
$f: ${DIST_DIR}/$f
sed -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
.endfor
2000-12-05 19:15:36 +00:00
.for f in ${SPECIALFILES}
$f: ${DIST_DIR}/$f
sed -e "s;@TMAC_AN_PREFIX@;$(tmac_an_prefix);g" \
-e "s;@TMAC_S_PREFIX@;$(tmac_s_prefix);g" \
${.ALLSRC} > ${.TARGET}
.endfor
tmac.an-old: tmac.an
sed -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
1996-09-08 01:27:58 +00:00
beforeinstall:
${INSTALL} ${COPY} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
${MDOCFILES} ${DESTDIR}${MDOCDIR}
${INSTALL} ${COPY} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
${STRIPFILES} ${SPECIALFILES} tmac.an-old ${DESTDIR}${TMACDIR}
cd ${DIST_DIR}; \
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
${FILES} ${DESTDIR}${TMACDIR}
1999-09-11 19:56:05 +00:00
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
1996-09-08 01:27:58 +00:00
.include "../Makefile.cfg"
.include <bsd.prog.mk>