Makefile revision 1.6
1# $NetBSD: Makefile,v 1.6 2002/01/03 22:45:23 tv Exp $ 2 3HOSTPROGNAME= nbmkdep 4HOST_SRCDIR= usr.bin/mkdep 5NOCOMPATLIB= # defined 6 7.PATH: ${.CURDIR}/../compat 8SRCS= mkdep.c setprogname.c 9 10.include "${.CURDIR}/../Makefile.host" 11 12CLEANFILES+= config.cache config.log config.status host-mkdep 13 14# Ths host mkdep lives here until it is installed. 15MKDEP= sh ./host-mkdep 16.depend mkdep: host-mkdep 17host-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. 22INSTALL= 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: 30regen: 31 cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 32