Home | History | Annotate | Line # | Download | only in groff
Makefile revision 1.13
      1  1.13   tv #	$NetBSD: Makefile,v 1.13 2002/02/01 13:51:38 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.11   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.12   tv # The silly walk below is because sometimes the files begin with "g",
     43  1.12   tv # and sometimes not, depending on what the host tool has at build time.
     44  1.12   tv 
     45  1.12   tv afterinstall: install.grofflinks
     46  1.12   tv install.grofflinks:
     47  1.13   tv 	@cd ${.CURDIR} && ${MAKE} install.grofflinks.recurse
     48  1.13   tv 
     49   1.4   tv .for F in eqn groff indxbib pic refer soelim tbl
     50  1.13   tv install.grofflinks.recurse: ${TOOLDIR}/bin/nb${F}
     51  1.12   tv .if exists(${TOOLDIR}/lib/groff/g${F})
     52  1.12   tv ${TOOLDIR}/bin/nb${F}: ${TOOLDIR}/lib/groff/g${F}
     53  1.12   tv .else
     54   1.4   tv ${TOOLDIR}/bin/nb${F}: ${TOOLDIR}/lib/groff/${F}
     55  1.12   tv .endif
     56   1.4   tv 	ln -f ${.ALLSRC} ${.TARGET}
     57   1.4   tv .endfor
     58  1.13   tv 
     59