]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
src/Makefile.am: add .DELETE_ON_ERROR
authorDave Reisner <dreisner@archlinux.org>
Tue, 8 Jul 2014 15:33:05 +0000 (17:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 17 Jul 2014 13:11:47 +0000 (15:11 +0200)
This prevents targets like tool_hugehelp.c from leaving around
half-constructed files if the rule fails with GNU make.

Reported-by: Rafaël Carré <funman@videolan.org>
src/Makefile.am

index 72e6772002bf55762d6da9547cebb0f7cbc1739b..d8c0c7da372f75c9b38a0ddc72280f4c3ffc9366 100644 (file)
@@ -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