From: Rolf Bjarne Kvinge Date: Tue, 10 May 2016 17:43:13 +0000 (+0200) Subject: [offsets-tool] Only create the .stamp-clone file if the clone succeeds. X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=commitdiff_plain;h=cde9cf18cb5ed5b1fc04e77100f0b6f4be8ad240 [offsets-tool] Only create the .stamp-clone file if the clone succeeds. This makes rebuilds work if the clone was cancelled. --- diff --git a/tools/offsets-tool/Makefile b/tools/offsets-tool/Makefile index 64863625da2..d4e07fd8965 100644 --- a/tools/offsets-tool/Makefile +++ b/tools/offsets-tool/Makefile @@ -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)