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