From e61f4818819eecd0d81d0f7c05ee9f75d34f33c4 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Thu, 16 Nov 2006 18:49:34 +0100 Subject: [PATCH] Added .DELETE_ON_ERROR rules. --- src/Makefile | 1 + src/stub/Makefile | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/Makefile b/src/Makefile index 71d0798c..7a48ad1f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -54,6 +54,7 @@ endif all: upx$(exeext) +.DELETE_ON_ERROR: upx$(exeext) $(upx_OBJECTS) upx$(exeext): $(upx_OBJECTS) $(upx_DEPENDENCIES) $($(notdir $@).PRE_LINK_STEP) diff --git a/src/stub/Makefile b/src/stub/Makefile index 2b59316e..2a223525 100644 --- a/src/stub/Makefile +++ b/src/stub/Makefile @@ -714,6 +714,10 @@ $(STUBS): tmp/.tmp-stamp $(MAKEFILE_LIST) endif -include tmp/*.d +ifneq ($(strip $(STUBS)),) +.DELETE_ON_ERROR: $(STUBS) +endif + # /*********************************************************************** # // extra-all