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