Home | History | Annotate | Line # | Download | only in texinfo
Makefile revision 1.5
      1 #	$NetBSD: Makefile,v 1.5 2001/10/19 02:40:03 tv Exp $
      2 
      3 .include <bsd.own.mk>	# for TOOLDIR
      4 
      5 DIST=		${.CURDIR}/../../gnu/dist/texinfo
      6 TIMESTAMP=	${TOOLDIR}/bin/makeinfo
      7 
      8 # Dependencies that trigger a rebuild.
      9 ${TIMESTAMP}: \
     10 	${.CURDIR}/Makefile \
     11 	${DIST}/ChangeLog
     12 
     13 realall: texinfo.all
     14 realinstall: texinfo.install
     15 clean: texinfo.clean
     16 
     17 texinfo.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 		TEXINFO_MAINT="" \
     27 		${DIST}/configure \
     28 		--disable-shared --with-included-gettext \
     29 		--prefix=${TOOLDIR}
     30 	@touch $@
     31 
     32 texinfo.all: texinfo.configure
     33 	cd texinfo && \
     34 		PATH="${TOOLDIR}/bin:$$PATH" \
     35 		${MAKE} -j1 all LEX=true BISON=true DESTDIR=
     36 
     37 texinfo.install:
     38 .for d in makeinfo util
     39 	cd texinfo/${d} && \
     40 		PATH="${TOOLDIR}/bin:$$PATH" \
     41 		${MAKE} -j1 install LEX=true BISON=true DESTDIR=
     42 .endfor
     43 
     44 texinfo.clean:
     45 	rm -rf texinfo*
     46 
     47 .include <bsd.hostprog.mk>
     48