Makefile revision 1.5
11.5Sperry#	$NetBSD: Makefile,v 1.5 2001/11/19 04:47:43 perry Exp $
21.1Stv
31.1StvMODULE=		groff
41.1Stv
51.1StvALL_TARGET=	src/include all
61.4StvMAKE_ARGS=	bindir=${TOOLDIR}/lib/groff
71.2Stv
81.2Stv# Add gnuwrap hack directly to the Makefile.
91.2Stv_NOWRAPPER=1
101.2Stv.build_done: build/Makefile
111.2Stvbuild/Makefile: .configure_done
121.2Stv	@printf '.include "${.CURDIR}/../Makefile.gnuwrap"\n' >>$@
131.1Stv
141.1Stv.include "${.CURDIR}/../Makefile.gnuhost"
151.1Stv
161.1Stv.PATH:		${.CURDIR}/../../share/tmac
171.1Stv
181.1Stv.for F in andoc doc doc-ditroff doc-common doc-nroff doc-syms doc2html
191.3Stvafterinstall:	${TMACDIR}/tmac.${F}
201.1Stv.PHONY:		${TMACDIR}/tmac.${F}
211.1Stv${TMACDIR}/tmac.${F}: ${F}
221.1Stv.if defined(UPDATE)
231.1Stv	@if ! cmp ${.ALLSRC} ${.TARGET} 2>/dev/null; then \
241.5Sperry		echo ${HOST_INSTALL_FILE:Q} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \
251.5Sperry		${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \
261.1Stv	fi
271.1Stv.else
281.5Sperry	${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
291.1Stv.endif
301.1Stv.endfor
311.1Stv
321.1Stvafterinstall: ${TMACDIR}/tmac.an
331.1Stv${TMACDIR}/tmac.an: ${TMACDIR}/tmac.andoc
341.5Sperry	${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
351.4Stv
361.4Stv.for F in eqn groff indxbib pic refer soelim tbl
371.4Stvafterinstall: ${TOOLDIR}/bin/nb${F}
381.4Stv${TOOLDIR}/bin/nb${F}: ${TOOLDIR}/lib/groff/${F}
391.4Stv	ln -f ${.ALLSRC} ${.TARGET}
401.4Stv.endfor
41