>
> I don't think this is correct. Your "comment out" example (example2.mk)
> is not accurate. To be accurate, you should comment out ONLY the
> order-only prerequisite part, like this:
>
>$(DERIVED_OBJ_DIR)/test.o: # | $(DERIVED_OBJ_DIR)
>
> Not the entire line. If you do this, you'll s
On Tue, 2008-04-22 at 09:41 -0400, Tony Strauss wrote:
> To put it another way, imagine that order-only prerequisites were
> specified through a different syntax mechanism that did not look like
> an ordinary rule to gmake. Would this (should this) order-only
> prerequisite count as a "real rule"
On Sun, 2008-04-20 at 12:46 -0400, Tony Strauss wrote:
> This works very well. Now, suppose that I comment out the implicit
> rule and the order-only prerequisite (attached as example2.mk):
> #$(DERIVED_OBJ_DIR)/test.o: | $(DERIVED_OBJ_DIR)
>
> Make correctly dies with:
> gmake: *** No rule to
My targets live in a different directory than my source, and so I want to
ensure that the target directory exists before building the target. This
can be accomplished in lots of ways, but one way that I thought of was to
use order-only prerequisites for this (actually, originally I just was using