[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Empty check_PROGRAMS causes "make all" to be called
From: |
Ralf Wildenhues |
Subject: |
Re: Empty check_PROGRAMS causes "make all" to be called |
Date: |
Sun, 2 Jul 2006 10:44:38 +0200 |
User-agent: |
Mutt/1.5.11+cvs20060403 |
Hi Stepan,
* Stepan Kasal wrote on Fri, Jun 30, 2006 at 06:20:22PM CEST:
>
> check_PROGRAMS =
> check_SCRIPTS =
> TESTS = ....
> check-am: all-am
> $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(check_SCRIPTS)
> $(MAKE) $(AM_MAKEFLAGS) check-TESTS
>
> Beacuse the two variables are empty, the first call to make is
> effectively "make all", causing recursive traversal of the whole
> subtree.
>
> One possible fix seems to be to combine the two calls to one:
>
> check-am: all-am
> $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(check_SCRIPTS) \
> check-TESTS
No, that will not preserve the order with parallel make. I guess you
could add a dummy target to the first make invocation. Or something
like
test -z '$(check_PROGRAMS)$(check_SCRIPTS)' || $(MAKE) ...
Cheers,
Ralf
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Empty check_PROGRAMS causes "make all" to be called,
Ralf Wildenhues <=