47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2002/01/03 16:38:50 tv Exp $
|
|
|
|
MODULE= groff
|
|
|
|
ALL_TARGET= src/include all
|
|
MAKE_ARGS= bindir=${TOOLDIR}/lib/groff
|
|
|
|
TMACDIR= ${TOOLDIR}/share/groff/tmac
|
|
|
|
# Add gnuwrap hack directly to the Makefile.
|
|
_NOWRAPPER=1
|
|
.build_done: build/Makefile
|
|
build/Makefile: .configure_done
|
|
@printf '.include "${.CURDIR}/../Makefile.gnuwrap"\n' >>$@
|
|
|
|
.include "${.CURDIR}/../Makefile.gnuhost"
|
|
|
|
.PATH: ${.CURDIR}/../../share/tmac
|
|
|
|
_installtmac: .USE
|
|
.if defined(UPDATE)
|
|
@if ! cmp ${.ALLSRC} ${.TARGET} >/dev/null 2>&1; then \
|
|
echo ${HOST_INSTALL_FILE:Q} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \
|
|
${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \
|
|
fi
|
|
.else
|
|
${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
|
|
.endif
|
|
|
|
.for F in andoc doc doc-ditroff doc-common doc-nroff doc-syms doc2html
|
|
afterinstall: ${TMACDIR}/tmac.${F}
|
|
.PHONY: ${TMACDIR}/tmac.${F}
|
|
${TMACDIR}/tmac.${F}: ${F} _installtmac
|
|
.endfor
|
|
|
|
afterinstall: ${TMACDIR}/tmac.an.old
|
|
${TMACDIR}/tmac.an.old: ${DIST}/tmac/tmac.an _installtmac
|
|
|
|
afterinstall: ${TMACDIR}/tmac.an
|
|
${TMACDIR}/tmac.an: ${TMACDIR}/tmac.andoc _installtmac
|
|
|
|
.for F in eqn groff indxbib pic refer soelim tbl
|
|
afterinstall: ${TOOLDIR}/bin/nb${F}
|
|
${TOOLDIR}/bin/nb${F}: ${TOOLDIR}/lib/groff/${F}
|
|
ln -f ${.ALLSRC} ${.TARGET}
|
|
.endfor
|