Hi, On Thu, Jan 06, 2005 at 09:26:04AM -0800, Shaun Jackman wrote: > bin_PROGRAMS=hello > CLEANFILES=something > include $(top_srcdir)/extra.am > > or simply > > bin_PROGRAMS=goodbye > include $(top_srcdir)/extra.am > > and extra.am needs to add one file to CLEANFILES in both cases.
well, I see two ways: 1) Either each Makefile.am calling extra.am has to set CLEANFILES, so the later snippet has to set CLEANFILES = before the include. It shouldn't be difficult to make that change automatically. 2) Or the extra.am starts with CLEANFILES = and each caller takes care not to touch it before the include. So the former snippet will become bin_PROGRAMS = hello include $(top_srcdir)/extra.am CLEANFILES += something HTH, Stepan Kasal