>> Unfortunately, I couldn't figure out a clean way to avoid the rm -rf here. > > Maybe add $(MACH)/.make.* and $(MACH64)/.make.* to CLEANFILES? > > It's good that it's an unusual case. Maybe the simplest way out is to > make those cases be the same as the others in the system -- put > Makefiles in those $(MACH) and $(MACH64) directories, and build > normally.
I agree with this approach; the mkdir seems clever, but I don't know what purpose it serves. The new makefile will be nothing more than "include ../../Makefile.blah," and the make invocation will lose the "-f" argument. --Mark
