xref: /netbsd-src/tools/host-mkdep/Makefile (revision f3b496ec9be495acbb17756f05d342b6b7b495e9)
1#	$NetBSD: Makefile,v 1.9 2003/10/26 07:25:38 lukem Exp $
2
3TIMESTAMP=	${TOOLDIR}/bin/${_TOOL_PREFIX}host-mkdep
4
5CLEANFILES+=	config.cache config.log config.status host-mkdep
6
7.include <bsd.hostprog.mk>
8
9realall: host-mkdep
10host-mkdep: configure host-mkdep.in
11	-rm -f $@
12	CC=${HOST_CC:Q} ${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache
13	chmod +x $@
14
15# This is the only program that comes before binstall.
16install: ${TIMESTAMP}
17${TIMESTAMP}: host-mkdep
18	mkdir -p ${TOOLDIR}/bin
19	cp host-mkdep $@
20	chmod +x $@
21
22# Run by hand, then "configure" script committed:
23regen:
24	cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf
25