17f50da79a
with DESTDIR being set on the command line at the top level (as per MAKEFLAGS propagation in newer make(1) sources).
47 lines
988 B
Makefile
47 lines
988 B
Makefile
# $NetBSD: Makefile,v 1.3 2001/10/08 22:19:55 tv Exp $
|
|
|
|
.include <bsd.own.mk> # for TOOLDIR
|
|
|
|
DIST= ${.CURDIR}/../../gnu/dist/texinfo
|
|
TIMESTAMP= ${TOOLDIR}/bin/makeinfo
|
|
|
|
# Dependencies that trigger a rebuild.
|
|
${TIMESTAMP}: \
|
|
${.CURDIR}/Makefile \
|
|
${DIST}/ChangeLog
|
|
|
|
realall: texinfo.all
|
|
realinstall: texinfo.install
|
|
clean: texinfo.clean
|
|
|
|
texinfo.configure:
|
|
rm -rf texinfo
|
|
mkdir texinfo
|
|
cd texinfo && \
|
|
CC="${HOST_CC}" \
|
|
CFLAGS="${HOST_CFLAGS}" \
|
|
CPPFLAGS="${HOST_CPPFLAGS}" \
|
|
LDFLAGS="${HOST_LDFLAGS}" \
|
|
PATH="${TOOLDIR}/bin:$$PATH" \
|
|
${DIST}/configure \
|
|
--disable-shared --with-included-gettext \
|
|
--prefix=${TOOLDIR}
|
|
@touch $@
|
|
|
|
texinfo.all: texinfo.configure
|
|
cd texinfo && \
|
|
PATH="${TOOLDIR}/bin:$$PATH" \
|
|
${MAKE} all LEX=true BISON=true DESTDIR=
|
|
|
|
texinfo.install:
|
|
.for d in makeinfo util
|
|
cd texinfo/${d} && \
|
|
PATH="${TOOLDIR}/bin:$$PATH" \
|
|
${MAKE} install LEX=true BISON=true DESTDIR=
|
|
.endfor
|
|
|
|
texinfo.clean:
|
|
rm -rf texinfo*
|
|
|
|
.include <bsd.hostprog.mk>
|