bug-automake
[Top][All Lists]
Advanced

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

Empty check_PROGRAMS causes "make all" to be called


From: Stepan Kasal
Subject: Empty check_PROGRAMS causes "make all" to be called
Date: Fri, 30 Jun 2006 18:20:22 +0200
User-agent: Mutt/1.4.2.1i

Hello,
  I encountered a problem.  If Makefile.am contains:

check_PROGRAMS =
check_SCRIPTS =
TESTS = ....

then the generated makefile contains:

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

What do you think?

Have a nice day,
        Stepan




reply via email to

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