1 # $NetBSD: Makefile,v 1.6 2001/10/31 01:20:10 tv Exp $ 2 3 .include <bsd.own.mk> # for TOOLDIR 4 5 DIST= ${.CURDIR}/../../gnu/dist/texinfo 6 TIMESTAMP= ${TOOLDIR}/bin/makeinfo 7 8 # Dependencies that trigger a rebuild. 9 ${TIMESTAMP}: \ 10 ${.CURDIR}/Makefile \ 11 ${DIST}/ChangeLog 12 13 .if ${USETOOLS} == "yes" 14 realall: texinfo.all 15 realinstall: texinfo.install 16 clean: texinfo.clean 17 .endif 18 19 texinfo.configure: 20 rm -rf texinfo 21 mkdir texinfo 22 cd texinfo && \ 23 CC="${HOST_CC}" \ 24 CFLAGS="${HOST_CFLAGS}" \ 25 CPPFLAGS="${HOST_CPPFLAGS}" \ 26 LDFLAGS="${HOST_LDFLAGS}" \ 27 PATH="${TOOLDIR}/bin:$$PATH" \ 28 TEXINFO_MAINT="" \ 29 ${DIST}/configure \ 30 --disable-shared --with-included-gettext \ 31 --prefix=${TOOLDIR} 32 @touch $@ 33 34 texinfo.all: texinfo.configure 35 cd texinfo && \ 36 PATH="${TOOLDIR}/bin:$$PATH" \ 37 ${MAKE} -j1 all LEX=true BISON=true DESTDIR= 38 39 texinfo.install: 40 .for d in makeinfo util 41 cd texinfo/${d} && \ 42 PATH="${TOOLDIR}/bin:$$PATH" \ 43 ${MAKE} -j1 install LEX=true BISON=true DESTDIR= 44 .endfor 45 46 texinfo.clean: 47 rm -rf texinfo* 48 49 .include <bsd.hostprog.mk> 50