John Baldwin <jhb at freebsd.org> wrote: > +CLEANFILES+= ${_MFILES:R:S/$/.c/} ${_MFILES:R:S/$/.h/} Since CLEANFILES is given to rm, you can use globs CLEANFILES+= ${_MFILES:R:S/$/.[ch]/} or .?