2002-01-04 01:45:23 +03:00
|
|
|
# $NetBSD: Makefile,v 1.6 2002/01/03 22:45:23 tv Exp $
|
2001-08-14 15:01:55 +04:00
|
|
|
|
2001-11-15 01:13:39 +03:00
|
|
|
HOSTPROGNAME= nbmkdep
|
2001-08-14 15:01:55 +04:00
|
|
|
HOST_SRCDIR= usr.bin/mkdep
|
2001-12-12 00:17:56 +03:00
|
|
|
NOCOMPATLIB= # defined
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../compat
|
|
|
|
SRCS= mkdep.c setprogname.c
|
2001-08-14 15:01:55 +04:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../Makefile.host"
|
|
|
|
|
2002-01-04 01:45:23 +03:00
|
|
|
CLEANFILES+= config.cache config.log config.status host-mkdep
|
|
|
|
|
|
|
|
# Ths host mkdep lives here until it is installed.
|
|
|
|
MKDEP= sh ./host-mkdep
|
|
|
|
.depend mkdep: host-mkdep
|
|
|
|
host-mkdep: configure host-mkdep.in
|
|
|
|
-rm -f $@
|
|
|
|
CC="${HOST_CC}" ${.CURDIR}/configure --cache-file=config.cache
|
2001-11-13 02:16:17 +03:00
|
|
|
|
|
|
|
# This is the only program that comes before binstall.
|
2001-12-12 05:42:17 +03:00
|
|
|
INSTALL= true
|
2002-01-04 01:45:23 +03:00
|
|
|
${HOST_BINDIR}/nbmkdep:: mkdep
|
|
|
|
-rm -f ${HOST_BINDIR}/nbmkdep ${HOST_BINDIR}/nbhost-mkdep
|
|
|
|
cp mkdep ${HOST_BINDIR}/nbmkdep
|
|
|
|
cp host-mkdep ${HOST_BINDIR}/nbhost-mkdep
|
|
|
|
chmod +x ${HOST_BINDIR}/nbhost-mkdep
|
|
|
|
|
|
|
|
# Run by hand, then "configure" script committed:
|
|
|
|
regen:
|
|
|
|
cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf
|