Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres G. Aragoneses <knocte@gmail.com>2016-10-06 07:46:32 +0300
committerAndres G. Aragoneses <knocte@gmail.com>2016-10-06 07:46:32 +0300
commit5009ba7af486e0da73983bc0284dc9ed3df7677e (patch)
tree4664be06affdb3a92c0f6dd87b1fe5a23118d4f9 /main/Makefile.am
parent00b6fbe27dbc177d3b91b4535ad875537edd9458 (diff)
[build] Use nuget.exe from nuget-binary's submodule if nuget not found
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44889
Diffstat (limited to 'main/Makefile.am')
-rw-r--r--main/Makefile.am10
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)