diff options
author | Andres G. Aragoneses <knocte@gmail.com> | 2016-10-06 07:46:32 +0300 |
---|---|---|
committer | Andres G. Aragoneses <knocte@gmail.com> | 2016-10-06 07:46:32 +0300 |
commit | 5009ba7af486e0da73983bc0284dc9ed3df7677e (patch) | |
tree | 4664be06affdb3a92c0f6dd87b1fe5a23118d4f9 | |
parent | 00b6fbe27dbc177d3b91b4535ad875537edd9458 (diff) |
[build] Use nuget.exe from nuget-binary's submodule if nuget not found
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44889
-rw-r--r-- | main/Makefile.am | 10 |
1 files changed, 6 insertions, 4 deletions
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) |