Home | History | Annotate | Line # | Download | only in host-mkdep
Makefile revision 1.11
      1 #	$NetBSD: Makefile,v 1.11 2012/12/02 12:21:51 apb Exp $
      2 
      3 TIMESTAMP=	${TOOLDIR}/bin/${_TOOL_PREFIX}host-mkdep
      4 
      5 CLEANFILES+=	config.cache config.log config.status host-mkdep
      6 
      7 .include <bsd.hostprog.mk>
      8 
      9 # XXX: The configure script needs to use awk, but we can't pass
     10 # AWK=${TOOL_AWK:Q} in CONFIGURE_ENV, because TOOL_AWK is not yet
     11 # available at the time that host-mkdep is built.  The configure script
     12 # will try to find some other version of awk.
     13 #
     14 CONFIGURE_ENV=	CC=${HOST_CC:Q}
     15 
     16 realall: host-mkdep
     17 host-mkdep: configure host-mkdep.in
     18 	-rm -f $@
     19 	${CONFIGURE_ENV} \
     20 	    ${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache
     21 	chmod +x $@
     22 
     23 # This is the only program that comes before binstall.
     24 install: ${TIMESTAMP}
     25 ${TIMESTAMP}: host-mkdep
     26 	mkdir -p ${TOOLDIR}/bin
     27 	cp host-mkdep $@
     28 	chmod +x $@
     29 
     30 # Run by hand, then "configure" script committed:
     31 regen:
     32 	cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf
     33