automake
[Top][All Lists]
Advanced

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

Re: Can a pattern rule enhance an implicit rule without overriding?


From: Rob Desbois
Subject: Re: Can a pattern rule enhance an implicit rule without overriding?
Date: Tue, 12 Feb 2008 12:53:22 +0000

Oops, sorry...wrong mailing list O.o
--rob

On Feb 12, 2008 11:44 AM, Rob Desbois <address@hidden> wrote:
> I want to have a portion of my makefile similar to this:
>    tests/%: tests/%.cpp tests/runner.cpp
>    tests/test-x: x.cpp x.h
>
> I have several targets in tests/ which all have similar core
> dependencies, hence the pattern rule.
> Some of them have additional dependencies, hence the second rule.
>
> The pattern rule is overriding the implicit rule for building a file
> from %.cpp source - but I still want to use the implicit rule's
> command(s), just with the additional dependencies.
> Is this possible, or is there some sort of workaround that can avoid
> killing the implicit rule?
>
> TIA,
> --rob
>



-- 
Rob Desbois
Eml: address@hidden
Tel: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and
the whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]