cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] add .DELETE_ON_ERROR for src/Makefile.am

From: Dave Reisner <dreisner_at_archlinux.org>
Date: Tue, 8 Jul 2014 11:33:05 -0400

This prevents targets like tool_hugehelp.c from leaving around
half-constructed files if the rule fails.

Reported-by: Rafaël Carré <funman_at_videolan.org>

---
 src/Makefile.am | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/src/Makefile.am b/src/Makefile.am
index 72e6772..d8c0c7d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -21,6 +21,9 @@
 ###########################################################################
 AUTOMAKE_OPTIONS = foreign nostdinc
 
+# remove targets if the command fails
+.DELETE_ON_ERROR:
+
 # Specify our include paths here, and do it relative to $(top_srcdir) and
 # $(top_builddir), to ensure that these paths which belong to the library
 # being currently built and tested are searched before the library which
-- 
2.0.1
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-07-08