"Alfred M. Szmidt" <a...@gnu.org> writes: > > Shouldn't the correct fix be that `make dist' depends on `make > > all' in automake? > > Yes, but is there an elegant way to make that work? > > Wouldn't a patch like the following to automake do the job?
I don't think it is a general problem that warrants a change in automake, but you could ask the automake people. Alternatively, maybe they could add a hook that is run before the 'dist' rule -- or is there one already? /Simon > diff --git a/lib/am/distdir.am b/lib/am/distdir.am > index 4e356b9..36462a9 100644 > --- a/lib/am/distdir.am > +++ b/lib/am/distdir.am > @@ -405,7 +405,7 @@ if %?SUBDIRS% > AM_RECURSIVE_TARGETS += dist dist-all > endif %?SUBDIRS% > > -dist dist-all: > +dist dist-all: all > $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' > $(am__post_remove_distdir) >