2001-11-13 17:21:03 +03:00
|
|
|
# $NetBSD: Makefile,v 1.3 2001/11/13 14:21:03 tv Exp $
|
2001-11-13 02:16:17 +03:00
|
|
|
|
|
|
|
MODULE= groff
|
|
|
|
|
|
|
|
ALL_TARGET= src/include all
|
|
|
|
|
2001-11-13 07:28:27 +03:00
|
|
|
# Add gnuwrap hack directly to the Makefile.
|
|
|
|
_NOWRAPPER=1
|
|
|
|
.build_done: build/Makefile
|
|
|
|
build/Makefile: .configure_done
|
|
|
|
@printf '.include "${.CURDIR}/../Makefile.gnuwrap"\n' >>$@
|
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
.include "${.CURDIR}/../Makefile.gnuhost"
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../share/tmac
|
|
|
|
|
|
|
|
.for F in andoc doc doc-ditroff doc-common doc-nroff doc-syms doc2html
|
2001-11-13 17:21:03 +03:00
|
|
|
afterinstall: ${TMACDIR}/tmac.${F}
|
2001-11-13 02:16:17 +03:00
|
|
|
.PHONY: ${TMACDIR}/tmac.${F}
|
|
|
|
${TMACDIR}/tmac.${F}: ${F}
|
|
|
|
.if defined(UPDATE)
|
|
|
|
@if ! cmp ${.ALLSRC} ${.TARGET} 2>/dev/null; then \
|
|
|
|
echo ${INSTALL_FILE:N-U:Q} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \
|
|
|
|
${INSTALL_FILE:N-U} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \
|
|
|
|
fi
|
|
|
|
.else
|
|
|
|
${INSTALL_FILE:N-U} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
afterinstall: ${TMACDIR}/tmac.an
|
|
|
|
${TMACDIR}/tmac.an: ${TMACDIR}/tmac.andoc
|
|
|
|
${INSTALL_FILE:N-U} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
|