Home | History | Annotate | Line # | Download | only in groff
Makefile revision 1.4
      1 #	$NetBSD: Makefile,v 1.4 2001/11/14 22:13:40 tv Exp $
      2 
      3 MODULE=		groff
      4 
      5 ALL_TARGET=	src/include all
      6 MAKE_ARGS=	bindir=${TOOLDIR}/lib/groff
      7 
      8 # Add gnuwrap hack directly to the Makefile.
      9 _NOWRAPPER=1
     10 .build_done: build/Makefile
     11 build/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
     19 afterinstall:	${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 ${INSTALL_FILE:N-U:Q} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \
     25 		${INSTALL_FILE:N-U} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \
     26 	fi
     27 .else
     28 	${INSTALL_FILE:N-U} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
     29 .endif
     30 .endfor
     31 
     32 afterinstall: ${TMACDIR}/tmac.an
     33 ${TMACDIR}/tmac.an: ${TMACDIR}/tmac.andoc
     34 	${INSTALL_FILE:N-U} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
     35 
     36 .for F in eqn groff indxbib pic refer soelim tbl
     37 afterinstall: ${TOOLDIR}/bin/nb${F}
     38 ${TOOLDIR}/bin/nb${F}: ${TOOLDIR}/lib/groff/${F}
     39 	ln -f ${.ALLSRC} ${.TARGET}
     40 .endfor
     41