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