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