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