2002-04-03 19:41:19 +04:00
|
|
|
# $NetBSD: Makefile,v 1.4 2002/04/03 15:41:19 christos Exp $
|
2002-01-10 20:04:20 +03:00
|
|
|
|
|
|
|
TIMESTAMP= ${TOOLDIR}/bin/nbhost-mkdep
|
|
|
|
|
|
|
|
CLEANFILES+= config.cache config.log config.status host-mkdep
|
|
|
|
|
|
|
|
.include <bsd.hostprog.mk>
|
|
|
|
|
|
|
|
realall: host-mkdep
|
|
|
|
host-mkdep: configure host-mkdep.in
|
|
|
|
-rm -f $@
|
2002-01-21 23:04:36 +03:00
|
|
|
CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \
|
|
|
|
${.CURDIR}/configure --cache-file=config.cache
|
2002-01-10 20:04:20 +03:00
|
|
|
|
|
|
|
# This is the only program that comes before binstall.
|
|
|
|
install: ${TIMESTAMP}
|
|
|
|
${TIMESTAMP}: host-mkdep
|
2002-02-12 22:54:16 +03:00
|
|
|
if [ ! -d ${TOOLDIR}/bin ]; then \
|
2002-04-03 19:41:19 +04:00
|
|
|
mkdir -p ${TOOLDIR}/bin; \
|
2002-02-12 22:54:16 +03:00
|
|
|
fi; cp host-mkdep $@
|
2002-01-10 20:04:20 +03:00
|
|
|
chmod +x $@
|
|
|
|
|
|
|
|
# Run by hand, then "configure" script committed:
|
|
|
|
regen:
|
|
|
|
cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf
|