Subject: Re: cannot open .depend: no such file
To: Bernd Ernesti <netbsd@arresum.inka.de>
From: Jonathan O'Brien <obrien@phoenix.sfsu.edu>
List: current-users
Date: 05/04/1997 07:52:35
On Sun, 4 May 1997, Jonathan O'Brien wrote:

> On Sun, 4 May 1997, Bernd Ernesti wrote:
> 
> > On Sun May  4 05:48:27 1997, Jonathan O'Brien wrote:
> > > 
> > > 
> > > I'm trying to build -current (19970503) and everything is going
> > > fairly well except it seems 'make depend' fails in ipf/* and
> > > ypserv/* with:
> > 
> > I fixed ipf/ipmon, but I can't reproduce the error in ypserv.

Unfortunatly, this only made it worse. :)

It seems that when make is looking for a .depend file, it finds
one in an alternate directory using the .PATH target, tries to
open it as if it were in the local dir and fails. Is that possible?

BTW, does ipf need multiple copies of opt.c if it's going to use
.PATH to find sources?
arkham# find . -name opt.c -print
./ipf/opt.c
./ipfstat/opt.c
./ipftest/opt.c
arkham# 

Anyway, I did managed to get it to work for now by reordering the
SUBDIR list so that the .depend files of targets that also have a
.PATH target are built first:

*** Makefile.orig	Sun Apr 13 04:26:07 1997
--- Makefile	Sun May  4 07:29:28 1997
***************
*** 1,5 ****
  #	$NetBSD: Makefile,v 1.3 1997/04/12 23:57:37 mrg Exp $
  
! SUBDIR=		ipf ipfstat ipmon ipnat ipftest ipsend iptest
  
  .include <bsd.subdir.mk>
--- 1,5 ----
  #	$NetBSD: Makefile,v 1.3 1997/04/12 23:57:37 mrg Exp $
  
! SUBDIR=		ipmon ipnat ipftest iptest ipsend ipfstat ipf
  
  .include <bsd.subdir.mk>