1 1.3 tv # $NetBSD: Makefile,v 1.3 2001/10/08 22:19:55 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.1 tv ${DIST}/configure \ 27 1.1 tv --disable-shared --with-included-gettext \ 28 1.1 tv --prefix=${TOOLDIR} 29 1.1 tv @touch $@ 30 1.1 tv 31 1.1 tv texinfo.all: texinfo.configure 32 1.1 tv cd texinfo && \ 33 1.3 tv PATH="${TOOLDIR}/bin:$$PATH" \ 34 1.3 tv ${MAKE} all LEX=true BISON=true DESTDIR= 35 1.1 tv 36 1.1 tv texinfo.install: 37 1.1 tv .for d in makeinfo util 38 1.1 tv cd texinfo/${d} && \ 39 1.3 tv PATH="${TOOLDIR}/bin:$$PATH" \ 40 1.3 tv ${MAKE} install LEX=true BISON=true DESTDIR= 41 1.1 tv .endfor 42 1.1 tv 43 1.1 tv texinfo.clean: 44 1.1 tv rm -rf texinfo* 45 1.1 tv 46 1.1 tv .include <bsd.hostprog.mk> 47