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: Martin Husemann <martin%duskware.de@localhost>
To: Steffen Nurpmeso <sdaoden%yandex.com@localhost>, gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/50176: make(1) prerequisite not assigned to target if
Date: Thu, 27 Aug 2015 13:38:06 +0200
On Thu, Aug 27, 2015 at 12:56:30PM +0200, Steffen Nurpmeso wrote:
> cf.o: hf.h
> hf.h:
> echo '#include <stdlib.h>' > hf.h
So (for dummies like me) summarized:
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.
Martin
Home |
Main Index |
Thread Index |
Old Index