Makefile revision 1.7
11.7Sjmc# $NetBSD: Makefile,v 1.7 2001/12/09 06:12:26 jmc Exp $ 21.1Stv 31.1StvMODULE= groff 41.1Stv 51.1StvALL_TARGET= src/include all 61.4StvMAKE_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.1Stv.for F in andoc doc doc-ditroff doc-common doc-nroff doc-syms doc2html 211.3Stvafterinstall: ${TMACDIR}/tmac.${F} 221.1Stv.PHONY: ${TMACDIR}/tmac.${F} 231.7Sjmc# Get the hard coded path out of any files and put ${TMACDIR} in it's place 241.1Stv${TMACDIR}/tmac.${F}: ${F} 251.7Sjmc @sed -e "s:/usr/share/tmac:${TMACDIR}:g" < ${.ALLSRC} > build/tmac/${F}.sed 261.1Stv.if defined(UPDATE) 271.7Sjmc @if ! cmp build/tmac/${F}.sed ${.TARGET} 2>/dev/null; then \ 281.7Sjmc echo ${HOST_INSTALL_FILE:Q} -m ${NONBINMODE} build/tmac/${F}.sed ${.TARGET}; \ 291.7Sjmc ${HOST_INSTALL_FILE} -m ${NONBINMODE} build/tmac/${F}.sed ${.TARGET}; \ 301.1Stv fi 311.1Stv.else 321.7Sjmc ${HOST_INSTALL_FILE} -m ${NONBINMODE} build/tmac/${F}.sed ${.TARGET} 331.1Stv.endif 341.1Stv.endfor 351.1Stv 361.1Stvafterinstall: ${TMACDIR}/tmac.an 371.1Stv${TMACDIR}/tmac.an: ${TMACDIR}/tmac.andoc 381.5Sperry ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET} 391.4Stv 401.4Stv.for F in eqn groff indxbib pic refer soelim tbl 411.4Stvafterinstall: ${TOOLDIR}/bin/nb${F} 421.4Stv${TOOLDIR}/bin/nb${F}: ${TOOLDIR}/lib/groff/${F} 431.4Stv ln -f ${.ALLSRC} ${.TARGET} 441.4Stv.endfor 45