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