1 1.6 tv # $NetBSD: Makefile,v 1.6 2002/01/03 22:45:23 tv Exp $ 2 1.1 tv 3 1.3 tv HOSTPROGNAME= nbmkdep 4 1.1 tv HOST_SRCDIR= usr.bin/mkdep 5 1.4 tv NOCOMPATLIB= # defined 6 1.4 tv 7 1.4 tv .PATH: ${.CURDIR}/../compat 8 1.4 tv SRCS= mkdep.c setprogname.c 9 1.1 tv 10 1.1 tv .include "${.CURDIR}/../Makefile.host" 11 1.1 tv 12 1.6 tv CLEANFILES+= config.cache config.log config.status host-mkdep 13 1.6 tv 14 1.6 tv # Ths host mkdep lives here until it is installed. 15 1.6 tv MKDEP= sh ./host-mkdep 16 1.6 tv .depend mkdep: host-mkdep 17 1.6 tv host-mkdep: configure host-mkdep.in 18 1.6 tv -rm -f $@ 19 1.6 tv CC="${HOST_CC}" ${.CURDIR}/configure --cache-file=config.cache 20 1.2 tv 21 1.2 tv # This is the only program that comes before binstall. 22 1.5 tv INSTALL= true 23 1.6 tv ${HOST_BINDIR}/nbmkdep:: mkdep 24 1.6 tv -rm -f ${HOST_BINDIR}/nbmkdep ${HOST_BINDIR}/nbhost-mkdep 25 1.6 tv cp mkdep ${HOST_BINDIR}/nbmkdep 26 1.6 tv cp host-mkdep ${HOST_BINDIR}/nbhost-mkdep 27 1.6 tv chmod +x ${HOST_BINDIR}/nbhost-mkdep 28 1.6 tv 29 1.6 tv # Run by hand, then "configure" script committed: 30 1.6 tv regen: 31 1.6 tv cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 32