Makefile revision 1.11
11.11Stv#	$NetBSD: Makefile,v 1.11 2002/01/31 15:24:36 tv Exp $
21.1Stv
31.1StvMODULE=		groff
41.1Stv
51.1StvALL_TARGET=	src/include all
61.11StvMAKE_ARGS=	bindir=${TOOLDIR}/lib/groff
71.6Sjmc
81.6SjmcTMACDIR=	${TOOLDIR}/share/groff/tmac
91.2Stv
101.2Stv# Add gnuwrap hack directly to the Makefile.
111.2Stv_NOWRAPPER=1
121.2Stv.build_done: build/Makefile
131.2Stvbuild/Makefile: .configure_done
141.2Stv	@printf '.include "${.CURDIR}/../Makefile.gnuwrap"\n' >>$@
151.1Stv
161.1Stv.include "${.CURDIR}/../Makefile.gnuhost"
171.1Stv
181.1Stv.PATH:		${.CURDIR}/../../share/tmac
191.1Stv
201.9Stv_installtmac: .USE
211.1Stv.if defined(UPDATE)
221.9Stv	@if ! cmp ${.ALLSRC} ${.TARGET} >/dev/null 2>&1; then \
231.9Stv		echo ${HOST_INSTALL_FILE:Q} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \
241.9Stv		${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \
251.1Stv	fi
261.1Stv.else
271.9Stv	${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
281.1Stv.endif
291.9Stv
301.9Stv.for F in andoc doc doc-ditroff doc-common doc-nroff doc-syms doc2html
311.9Stvafterinstall:	${TMACDIR}/tmac.${F}
321.9Stv.PHONY:		${TMACDIR}/tmac.${F}
331.9Stv${TMACDIR}/tmac.${F}: ${F} _installtmac
341.1Stv.endfor
351.1Stv
361.8Sjmcafterinstall: ${TMACDIR}/tmac.an.old
371.9Stv${TMACDIR}/tmac.an.old: ${DIST}/tmac/tmac.an _installtmac
381.8Sjmc
391.1Stvafterinstall: ${TMACDIR}/tmac.an
401.9Stv${TMACDIR}/tmac.an: ${TMACDIR}/tmac.andoc _installtmac
411.4Stv
421.4Stv.for F in eqn groff indxbib pic refer soelim tbl
431.4Stvafterinstall: ${TOOLDIR}/bin/nb${F}
441.4Stv${TOOLDIR}/bin/nb${F}: ${TOOLDIR}/lib/groff/${F}
451.4Stv	ln -f ${.ALLSRC} ${.TARGET}
461.4Stv.endfor
47