1 1.3 jmc # $NetBSD: Makefile,v 1.3 2002/02/12 19:54:16 jmc 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.3 jmc mkdir ${TOOLDIR}; \ 20 1.3 jmc mkdir ${TOOLDIR}/bin; \ 21 1.3 jmc fi; cp host-mkdep $@ 22 1.1 tv chmod +x $@ 23 1.1 tv 24 1.1 tv # Run by hand, then "configure" script committed: 25 1.1 tv regen: 26 1.1 tv cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 27