Home | History | Annotate | Line # | Download | only in host-mkdep
Makefile revision 1.12.28.1
      1  1.12.28.1  pgoyette #	$NetBSD: Makefile,v 1.12.28.1 2018/05/02 07:20:26 pgoyette Exp $
      2  1.12.28.1  pgoyette 
      3  1.12.28.1  pgoyette .include <bsd.hostinit.mk>
      4        1.1        tv 
      5       1.12       apb HOSTPROG= 	host-mkdep
      6       1.12       apb HOSTPROGNAME=	${_TOOL_PREFIX}host-mkdep
      7       1.12       apb HOST_BINDIR=	${TOOLDIR}/bin
      8       1.12       apb 
      9       1.12       apb SRCS=	# empty
     10        1.1        tv 
     11        1.1        tv CLEANFILES+=	config.cache config.log config.status host-mkdep
     12        1.1        tv 
     13        1.1        tv .include <bsd.hostprog.mk>
     14        1.1        tv 
     15       1.11       apb # XXX: The configure script needs to use awk, but we can't pass
     16       1.11       apb # AWK=${TOOL_AWK:Q} in CONFIGURE_ENV, because TOOL_AWK is not yet
     17       1.11       apb # available at the time that host-mkdep is built.  The configure script
     18       1.11       apb # will try to find some other version of awk.
     19       1.11       apb #
     20       1.11       apb CONFIGURE_ENV=	CC=${HOST_CC:Q}
     21       1.10       apb 
     22        1.1        tv realall: host-mkdep
     23        1.1        tv host-mkdep: configure host-mkdep.in
     24        1.1        tv 	-rm -f $@
     25       1.11       apb 	${CONFIGURE_ENV} \
     26       1.11       apb 	    ${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache
     27        1.7  christos 	chmod +x $@
     28        1.1        tv 
     29       1.12       apb # Use uninstalled copy of the install program
     30       1.12       apb INSTALL_OBJ!=	cd ${NETBSDSRCDIR}/tools/binstall && ${PRINTOBJDIR}
     31       1.12       apb INSTALL=	${INSTALL_OBJ}/xinstall
     32       1.12       apb 
     33       1.12       apb # Install rule, copied from src/tools/Makefile.host.
     34       1.12       apb # We can't include Makefile.host because there is no HOST_SRCDIR
     35       1.12       apb # corresponding to host-mkdep.
     36       1.12       apb #
     37       1.12       apb realinstall: install.host
     38       1.12       apb install.host: ${HOST_BINDIR}/${HOSTPROGNAME}
     39       1.12       apb ${HOST_BINDIR}/${HOSTPROGNAME}:: ${HOSTPROG}
     40       1.12       apb 	${_MKTARGET_INSTALL}
     41       1.12       apb 	mkdir -p ${HOST_BINDIR}
     42       1.12       apb 	${HOST_INSTALL_FILE} -m ${BINMODE} ${HOSTPROG}${HOSTEXEEXT} ${.TARGET}
     43       1.12       apb 
     44       1.12       apb .if ${MKUPDATE} == "no"
     45       1.12       apb .PHONY:		${HOST_BINDIR}/${HOSTPROGNAME}
     46       1.12       apb .endif
     47        1.1        tv 
     48        1.1        tv # Run by hand, then "configure" script committed:
     49        1.1        tv regen:
     50        1.6   thorpej 	cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf
     51