Hello, I've just stumbled over this problem: Makefile.am contains: foo.h: foo.x $(GENERATOR) foo.x >foo.h
But the GENERATOR command failed and I have empty foo.h. It would be nice if make deleted foo.h automatically, but this is not the historical practice. GNU make enables you to change its behaviour by mentioning a target: .DELETE_ON_ERROR: Could Automake possibly add this target to all generated Makefile.in's? I understand that the problem is that we want to write portable Makefiles. OTOH, this change doesn't prevent build from scratch with non-GNU makes. And most developers use GNU make, and this change can help them with their work. WDYT? Stepan Kasal