Makefile revision 1.5
1# $NetBSD: Makefile,v 1.5 2001/11/19 04:47:43 perry Exp $ 2 3MODULE= groff 4 5ALL_TARGET= src/include all 6MAKE_ARGS= bindir=${TOOLDIR}/lib/groff 7 8# Add gnuwrap hack directly to the Makefile. 9_NOWRAPPER=1 10.build_done: build/Makefile 11build/Makefile: .configure_done 12 @printf '.include "${.CURDIR}/../Makefile.gnuwrap"\n' >>$@ 13 14.include "${.CURDIR}/../Makefile.gnuhost" 15 16.PATH: ${.CURDIR}/../../share/tmac 17 18.for F in andoc doc doc-ditroff doc-common doc-nroff doc-syms doc2html 19afterinstall: ${TMACDIR}/tmac.${F} 20.PHONY: ${TMACDIR}/tmac.${F} 21${TMACDIR}/tmac.${F}: ${F} 22.if defined(UPDATE) 23 @if ! cmp ${.ALLSRC} ${.TARGET} 2>/dev/null; then \ 24 echo ${HOST_INSTALL_FILE:Q} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \ 25 ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \ 26 fi 27.else 28 ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET} 29.endif 30.endfor 31 32afterinstall: ${TMACDIR}/tmac.an 33${TMACDIR}/tmac.an: ${TMACDIR}/tmac.andoc 34 ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET} 35 36.for F in eqn groff indxbib pic refer soelim tbl 37afterinstall: ${TOOLDIR}/bin/nb${F} 38${TOOLDIR}/bin/nb${F}: ${TOOLDIR}/lib/groff/${F} 39 ln -f ${.ALLSRC} ${.TARGET} 40.endfor 41