# Generate "make all" and "make check" rules.
sub handle_all_and_check ()
{
- almost_verbatim ('all-target', 'ALL-DEPS' => "@all");
+ almost_verbatim ('all-target');
almost_verbatim ('check-target');
}
define_variable 'am.all-ltlibs', INTERNAL, sort keys %known_ltlibraries;
# Must come after invocation of several of the 'handle_*' functions
# above, which can declare additional dependencies for the 'check'
- # target.
+ # and 'all' target.
+ define_variable ('am.all.targets', INTERNAL, @all);
define_variable ('am.test-suite.deps', INTERNAL, @check);
handle_tests;
@touch $@
endif
-all-am: all-local %ALL-DEPS%
+all-am: all-local $(am.all.targets)
all: $(if $(SUBDIRS),all-recursive,all-am)
grep '^Makefile\.am:.*sub/foo\.c.*requires.*AM_PROG_CC_C_O' stderr
grep README stderr && exit 1
$EGREP '(install|override)' stderr && exit 1
-$EGREP 'distdir|\.tar' Makefile.in && exit 1
+$EGREP 'distdir|\.tar[ .]' Makefile.in && exit 1
:
$AUTOMAKE
$EGREP '\.stamp|class' Makefile.in # For debugging.
-grep '^all[-a-z]*:.*classjava\.stamp' Makefile.in
-test $(grep -c '^all[-a-z]*:.*classjava\.stamp' Makefile.in) -eq 1
echo 'class a { }' > a.java
echo 'class b { }' > b.java