automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.DELETE_ON_ERROR ?


From: Stepan Kasal
Subject: .DELETE_ON_ERROR ?
Date: Tue, 10 May 2005 15:15:44 +0200
User-agent: Mutt/1.4.1i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]