From 5009ba7af486e0da73983bc0284dc9ed3df7677e Mon Sep 17 00:00:00 2001 From: "Andres G. Aragoneses" Date: Thu, 6 Oct 2016 12:46:32 +0800 Subject: [build] Use nuget.exe from nuget-binary's submodule if nuget not found Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44889 --- main/Makefile.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'main/Makefile.am') diff --git a/main/Makefile.am b/main/Makefile.am index b6611c20dc..0e45d943ba 100644 --- a/main/Makefile.am +++ b/main/Makefile.am @@ -24,11 +24,13 @@ clean-local: sln_clean NUGET_FOUND = $$(echo $$(which nuget)) NUGET_RESTORE = \ if [ "x$(NUGET_FOUND)" = "x" ]; then \ - echo "nuget not found; please install it first"; \ - exit 1; \ - fi; \ - nuget restore + mono external/nuget-binary/nuget.exe restore; \ + else \ + nuget restore; \ + fi; +#FIXME: move the restore logic into MSBuild (Before.sln.targets), +# see: https://github.com/kzu/NuGet.Restore restore-packages: @$(NUGET_RESTORE) -- cgit v1.2.3