Thanks Aleksey. I discovered I'd forgot to consider cleaning the subdirectories. After spending an hour trying to figure out how to do this with addprefix and so on, I ended up with... $(cd maths, $(CLEAN)) Sometimes I like to make things difficult for myself. :)