NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/50176: make(1) prerequisite not assigned to target if



The following reply was made to PR bin/50176; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/50176: make(1) prerequisite not assigned to target if
Date: Mon, 31 Aug 2015 17:21:13 +0000

 On Thu, Aug 27, 2015 at 11:40:00AM +0000, Martin Husemann wrote:
  >  The point is that if you use OBJ_SRC = ./cf.c the above cf.o rule
  >  does not trigger and you have to write
  >  
  >  ./cf.o: hf.h
  >  
  >  instead to match ${OBJ}. You could (in this simple example) just use
  >  
  >  ${OBJ}: hf.h
  >  
  >  and it all works.
  >  
  >  Wether this should be considered a bug, I am not sure.
 
 I would say it isn't.
 
 If make were better organized inside it might be possible to make it
 warn if the same file is referred to by more than one target name.
 (Not a chance of that currently.) But we don't want to get into the
 business of altering target names like they're paths (with realpath or
 anything else) because, among other things, they aren't always paths.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index