[offsets-tool] Only create the .stamp-clone file if the clone succeeds.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 10 May 2016 17:43:13 +0000 (19:43 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 10 May 2016 17:56:48 +0000 (19:56 +0200)
This makes rebuilds work if the clone was cancelled.

tools/offsets-tool/Makefile

index 64863625da2110e86aec1c37874467bde5810715..d4e07fd8965d5796ac61c0cf557c18c12a2e1d11 100644 (file)
@@ -11,8 +11,7 @@ MONO_OPTIONS_SRC = $(SRC_ROOT)/mcs/class/Mono.Options/Mono.Options/Options.cs
 
 .stamp-clone:
        @if [ ! -d $(CPPSHARP_DIR) ]; then \
-               git clone git@github.com:xamarin/CppSharpBinaries.git $(CPPSHARP_DIR); \
-               touch $@; \
+               git clone git@github.com:xamarin/CppSharpBinaries.git $(CPPSHARP_DIR) && touch $@; \
        fi
 
 MonoAotOffsetsDumper.exe: .stamp-clone MonoAotOffsetsDumper.cs $(MONO_OPTIONS_SRC)