[dragonegg] r175612 - If a command fails, make sure the target is deleted. This came up with failure

Duncan Sands baldrick at free.fr
Wed Feb 20 00:43:22 PST 2013


Author: baldrick
Date: Wed Feb 20 02:43:21 2013
New Revision: 175612

URL: http://llvm.org/viewvc/llvm-project?rev=175612&view=rev
Log:
If a command fails, make sure the target is deleted.  This came up with failure
to build dragonegg-lit.site.cfg due to sed barfing after creating an empty file
for the target.  Running again would then do the wrong thing as make would think
that target had been made already, due to the empty file.

Modified:
    dragonegg/trunk/Makefile

Modified: dragonegg/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Makefile?rev=175612&r1=175611&r2=175612&view=diff
==============================================================================
--- dragonegg/trunk/Makefile (original)
+++ dragonegg/trunk/Makefile Wed Feb 20 02:43:21 2013
@@ -178,6 +178,8 @@ check: check-validator check-compilator
 clean:
 	$(QUIET)rm -f *.o *.d $(PLUGIN) $(TARGET_UTIL) $(LIT_SITE_CONFIG)
 
+.DELETE_ON_ERROR:
+
 
 -include $(ALL_OBJECTS:.o=.d)
 





More information about the llvm-commits mailing list