1 1.4 christos # $NetBSD: Makefile,v 1.4 2002/04/03 15:41:19 christos Exp $ 2 1.1 tv 3 1.1 tv TIMESTAMP= ${TOOLDIR}/bin/nbhost-mkdep 4 1.1 tv 5 1.1 tv CLEANFILES+= config.cache config.log config.status host-mkdep 6 1.1 tv 7 1.1 tv .include <bsd.hostprog.mk> 8 1.1 tv 9 1.1 tv realall: host-mkdep 10 1.1 tv host-mkdep: configure host-mkdep.in 11 1.1 tv -rm -f $@ 12 1.2 tv CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \ 13 1.2 tv ${.CURDIR}/configure --cache-file=config.cache 14 1.1 tv 15 1.1 tv # This is the only program that comes before binstall. 16 1.1 tv install: ${TIMESTAMP} 17 1.1 tv ${TIMESTAMP}: host-mkdep 18 1.3 jmc if [ ! -d ${TOOLDIR}/bin ]; then \ 19 1.4 christos mkdir -p ${TOOLDIR}/bin; \ 20 1.3 jmc fi; cp host-mkdep $@ 21 1.1 tv chmod +x $@ 22 1.1 tv 23 1.1 tv # Run by hand, then "configure" script committed: 24 1.1 tv regen: 25 1.1 tv cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 26