Re: [AMBER-Developers] PSA: Please be careful when re-ordering Makefile targets

From: David A Case <david.case.rutgers.edu>
Date: Mon, 23 Mar 2020 15:01:50 -0400

On Mon, Mar 23, 2020, Dan Roe wrote:

>- I haven't checked others but I'm pretty sure this has been happening
>for a while. If I switch to a more "sane" ordering (i.e. targets only
>reference other targets that have been previously listed) I get the
>correct behavior, i.e. the tests are run.

Here's my interpretation: it's not that the order of targets matter
(otherwise almost no Makefiles would work). What happened here is that
a Makefile *variable* (COMPLETE_TESTS in this case) is referenced
before it is defined.

But kudos to Dan for catching this!

....dac


_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Mon Mar 23 2020 - 12:30:02 PDT
Custom Search