1 1.5 tv # $NetBSD: Makefile,v 1.5 2001/10/19 02:40:03 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.1 tv realall: texinfo.all 14 1.1 tv realinstall: texinfo.install 15 1.1 tv clean: texinfo.clean 16 1.1 tv 17 1.1 tv texinfo.configure: 18 1.1 tv rm -rf texinfo 19 1.1 tv mkdir texinfo 20 1.1 tv cd texinfo && \ 21 1.1 tv CC="${HOST_CC}" \ 22 1.1 tv CFLAGS="${HOST_CFLAGS}" \ 23 1.1 tv CPPFLAGS="${HOST_CPPFLAGS}" \ 24 1.1 tv LDFLAGS="${HOST_LDFLAGS}" \ 25 1.1 tv PATH="${TOOLDIR}/bin:$$PATH" \ 26 1.5 tv TEXINFO_MAINT="" \ 27 1.1 tv ${DIST}/configure \ 28 1.1 tv --disable-shared --with-included-gettext \ 29 1.1 tv --prefix=${TOOLDIR} 30 1.1 tv @touch $@ 31 1.1 tv 32 1.1 tv texinfo.all: texinfo.configure 33 1.1 tv cd texinfo && \ 34 1.3 tv PATH="${TOOLDIR}/bin:$$PATH" \ 35 1.4 tv ${MAKE} -j1 all LEX=true BISON=true DESTDIR= 36 1.1 tv 37 1.1 tv texinfo.install: 38 1.1 tv .for d in makeinfo util 39 1.1 tv cd texinfo/${d} && \ 40 1.3 tv PATH="${TOOLDIR}/bin:$$PATH" \ 41 1.4 tv ${MAKE} -j1 install LEX=true BISON=true DESTDIR= 42 1.1 tv .endfor 43 1.1 tv 44 1.1 tv texinfo.clean: 45 1.1 tv rm -rf texinfo* 46 1.1 tv 47 1.1 tv .include <bsd.hostprog.mk> 48