Subject: Re: Many build failures...
To: None <seebs@solon.com>
From: Gordon W. Ross <gwr@mc.com>
List: current-users
Date: 05/07/1997 19:24:03
> Date: Tue, 6 May 1997 18:24:29 -0500 (CDT)
> From: Peter Seebach <seebs@solon.com>
> 
> On 68k, with new make, and new share/mk, I'm having weird failures
> of any build which depends on source not in the current directory.
> 
> Am I missing something obvious?

I would fix those, but Christos asked me to hold off.
In the mean time, here are some changes I'm using:

cvs diff -c usr.sbin/bootpef/Makefile
Index: usr.sbin/bootpef/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/bootpef/Makefile,v
retrieving revision 1.4
diff -c -r1.4 Makefile
*** Makefile	1997/05/06 20:46:03	1.4
--- Makefile	1997/05/07 23:16:36
***************
*** 4,10 ****
  PROG=	bootpef
  SRCDIR= ${.CURDIR}/../bootpd
  CFLAGS+= -DETC_ETHERS -DDEBUG -I${SRCDIR}
- .PATH.c: ${SRCDIR}
  
  SRCS=	bootpef.c dovend.c readfile.c hash.c dumptab.c \
  	 lookup.c hwaddr.c report.c tzone.c
--- 4,9 ----
***************
*** 13,15 ****
--- 12,16 ----
  
  .include <bsd.prog.mk>
  
+ .PATH.c: ${SRCDIR}
+ .PATH.8: ${SRCDIR}
cvs diff -c usr.sbin/bootptest/Makefile
Index: usr.sbin/bootptest/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/bootptest/Makefile,v
retrieving revision 1.5
diff -c -r1.5 Makefile
*** Makefile	1997/05/06 20:46:05	1.5
--- Makefile	1997/05/07 23:16:42
***************
*** 4,10 ****
  PROG=	bootptest
  SRCDIR= ${.CURDIR}/../bootpd
  CFLAGS+= -I${SRCDIR}
- .PATH.c: ${SRCDIR}
  
  SRCS=	bootptest.c print-bootp.c getif.c getether.c report.c
  
--- 4,9 ----
***************
*** 12,14 ****
--- 11,15 ----
  
  .include <bsd.prog.mk>
  
+ .PATH.c: ${SRCDIR}
+ .PATH.8: ${SRCDIR}
cvs diff -c usr.sbin/named/dig/Makefile
Index: usr.sbin/named/dig/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/named/dig/Makefile,v
retrieving revision 1.4
diff -c -r1.4 Makefile
*** Makefile	1997/05/06 20:46:27	1.4
--- Makefile	1997/05/07 23:16:47
***************
*** 1,10 ****
  #	$NetBSD: Makefile,v 1.4 1997/05/06 20:46:27 gwr Exp $
  # from: $Id: Makefile,v 8.1 1994/12/15 06:23:45 vixie Exp 
  
- .PATH.c: ${.CURDIR}/../nslookup \
- 	${.CURDIR}/../man \
- 	${.CURDIR}/../../../lib/libc/net
- 
  PROG=	dig
  SRCS=	dig.c list.c subr.c debug.c send.c  gethostnamadr.c res_init.c \
  	res_mkquery.c res_query.c res_send.c
--- 1,6 ----
***************
*** 12,14 ****
--- 8,14 ----
  
  .include "../../Makefile.inc"
  .include <bsd.prog.mk>
+ 
+ .PATH.c: ${.CURDIR}/../nslookup \
+ 	 ${.CURDIR}/../../../lib/libc/net
+ .PATH.1: ${.CURDIR}/../man
cvs diff -c usr.sbin/named/dnsquery/Makefile
Index: usr.sbin/named/dnsquery/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/named/dnsquery/Makefile,v
retrieving revision 1.3
diff -c -r1.3 Makefile
*** Makefile	1997/05/06 20:46:28	1.3
--- Makefile	1997/05/07 23:16:54
***************
*** 1,8 ****
  #	$NetBSD: Makefile,v 1.3 1997/05/06 20:46:28 gwr Exp $
  
- .PATH.c: ${.CURDIR}/../man
- 
  PROG=	dnsquery
  
  .include "../../Makefile.inc"
  .include <bsd.prog.mk>
--- 1,8 ----
  #	$NetBSD: Makefile,v 1.3 1997/05/06 20:46:28 gwr Exp $
  
  PROG=	dnsquery
  
  .include "../../Makefile.inc"
  .include <bsd.prog.mk>
+ 
+ .PATH.1: ${.CURDIR}/../man
cvs diff -c usr.sbin/named/host/Makefile
Index: usr.sbin/named/host/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/named/host/Makefile,v
retrieving revision 1.3
diff -c -r1.3 Makefile
*** Makefile	1997/05/06 20:46:29	1.3
--- Makefile	1997/05/07 23:16:59
***************
*** 3,9 ****
  PROG = host
  SRCS = host.c send.c vers.c
  
- .PATH.c: ${.CURDIR}/../man
- 
  .include "../../Makefile.inc"
  .include <bsd.prog.mk>
--- 3,9 ----
  PROG = host
  SRCS = host.c send.c vers.c
  
  .include "../../Makefile.inc"
  .include <bsd.prog.mk>
+ 
+ .PATH.1: ${.CURDIR}/../man
cvs diff -c usr.sbin/named/named/Makefile
Index: usr.sbin/named/named/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/named/named/Makefile,v
retrieving revision 1.4
diff -c -r1.4 Makefile
*** Makefile	1997/05/06 20:46:31	1.4
--- Makefile	1997/05/07 23:17:05
***************
*** 1,8 ****
  #	$NetBSD: Makefile,v 1.4 1997/05/06 20:46:31 gwr Exp $
  # from: $Id: Makefile,v 8.1 1994/12/15 06:23:45 vixie Exp 
  
- .PATH.c: ${.CURDIR}/../man
- 
  PROG=	named
  SRCS=	version.c db_dump.c db_glue.c db_load.c db_lookup.c db_reload.c \
  	db_save.c db_secure.c db_update.c ns_forw.c \
--- 1,6 ----
***************
*** 16,18 ****
--- 14,18 ----
  
  .include "../../Makefile.inc"
  .include <bsd.prog.mk>
+ 
+ .PATH.8: ${.CURDIR}/../man
cvs diff -c usr.sbin/named/named-xfer/Makefile
Index: usr.sbin/named/named-xfer/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/named/named-xfer/Makefile,v
retrieving revision 1.5
diff -c -r1.5 Makefile
*** Makefile	1997/05/06 20:46:30	1.5
--- Makefile	1997/05/07 23:17:10
***************
*** 1,9 ****
  #	$NetBSD: Makefile,v 1.5 1997/05/06 20:46:30 gwr Exp $
  # from: $Id: Makefile,v 8.2 1995/12/31 23:28:01 vixie Exp 
  
- .PATH.c: ${.CURDIR}/../named \
- 	${.CURDIR}/../man
- 
  PROG=	named-xfer
  SRCS=	named-xfer.c db_glue.c storage.c version.c
  CFLAGS+=	-I${.CURDIR}/../named
--- 1,6 ----
***************
*** 12,14 ****
--- 9,14 ----
  
  .include "../../Makefile.inc"
  .include <bsd.prog.mk>
+ 
+ .PATH.c: ${.CURDIR}/../named
+ .PATH.8: ${.CURDIR}/../man
cvs diff -c usr.sbin/named/ndc/Makefile
Index: usr.sbin/named/ndc/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/named/ndc/Makefile,v
retrieving revision 1.9
diff -c -r1.9 Makefile
*** Makefile	1997/05/06 20:46:32	1.9
--- Makefile	1997/05/07 23:17:17
***************
*** 1,8 ****
  #	$NetBSD: Makefile,v 1.9 1997/05/06 20:46:32 gwr Exp $
  # from: $Id: Makefile,v 8.1 1994/12/15 06:23:47 vixie Exp 
  
- .PATH.c: ${.CURDIR}/../man
- 
  all:	ndc
  CLEANFILES+= ndc
  MAN=	ndc.8
--- 1,6 ----
***************
*** 24,26 ****
--- 22,26 ----
  	chmod +x $@
  
  .include <bsd.prog.mk>
+ 
+ .PATH.8: ${.CURDIR}/../man
cvs diff -c usr.sbin/named/nslookup/Makefile
Index: usr.sbin/named/nslookup/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/named/nslookup/Makefile,v
retrieving revision 1.5
diff -c -r1.5 Makefile
*** Makefile	1997/05/06 20:46:33	1.5
--- Makefile	1997/05/07 23:17:22
***************
*** 1,9 ****
  #	$NetBSD: Makefile,v 1.5 1997/05/06 20:46:33 gwr Exp $
  # from: $Id: Makefile,v 8.1 1994/12/15 06:23:48 vixie Exp 
  
- .PATH.c: ${.CURDIR}/../nslookup \
- 	${.CURDIR}/../man
- 
  PROG=	nslookup
  SRCS=	main.c getinfo.c debug.c send.c skip.c list.c subr.c commands.l
  CFLAGS+= ${INCLUDE}
--- 1,6 ----
***************
*** 16,18 ****
--- 13,18 ----
  
  .include "../../Makefile.inc"
  .include <bsd.prog.mk>
+ 
+ .PATH.c: ${.CURDIR}/../nslookup  # ???
+ .PATH.8: ${.CURDIR}/../man
cvs diff -c usr.sbin/named/reload/Makefile
Index: usr.sbin/named/reload/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/named/reload/Makefile,v
retrieving revision 1.9
diff -c -r1.9 Makefile
*** Makefile	1997/05/06 20:46:34	1.9
--- Makefile	1997/05/07 23:17:28
***************
*** 1,8 ****
  #	$NetBSD: Makefile,v 1.9 1997/05/06 20:46:34 gwr Exp $
  # from: $Id: Makefile,v 8.1 1994/12/15 06:23:46 vixie Exp 
  
- .PATH.c: ${.CURDIR}/../man
- 
  all:	named.reload
  CLEANFILES+= named.reload
  MAN=	named.reload.8
--- 1,6 ----
***************
*** 18,20 ****
--- 16,20 ----
  
  .include "../../Makefile.inc"
  .include <bsd.prog.mk>
+ 
+ .PATH.8: ${.CURDIR}/../man
cvs diff -c usr.sbin/named/restart/Makefile
Index: usr.sbin/named/restart/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/named/restart/Makefile,v
retrieving revision 1.9
diff -c -r1.9 Makefile
*** Makefile	1997/05/06 20:46:35	1.9
--- Makefile	1997/05/07 23:17:33
***************
*** 1,8 ****
  #	$NetBSD: Makefile,v 1.9 1997/05/06 20:46:35 gwr Exp $
  # from: $Id: Makefile,v 8.1 1994/12/15 06:23:47 vixie Exp 
  
- .PATH.c: ${.CURDIR}/../man
- 
  all:	named.restart
  CLEANFILES+= named.restart
  MAN=	named.restart.8
--- 1,6 ----
***************
*** 19,21 ****
--- 17,21 ----
  	chmod +x $@
  
  .include <bsd.prog.mk>
+ 
+ .PATH.8: ${.CURDIR}/../man