diff options
author | Andres G. Aragoneses <knocte@gmail.com> | 2016-10-06 07:36:37 +0300 |
---|---|---|
committer | Andres G. Aragoneses <knocte@gmail.com> | 2016-10-06 07:36:37 +0300 |
commit | 00b6fbe27dbc177d3b91b4535ad875537edd9458 (patch) | |
tree | 15574fa3bb79f713a8e7d49d6105d1f1d4e985a3 /main/Makefile.am | |
parent | 315b702f8fbc9c95544bd07058dc4a52750e9ea6 (diff) |
[build] More comprehensible error message for missing nuget
Inspired in other recent commit:
https://github.com/mono/monodevelop/commit/d4d1707fce3e158a8a982c044395e6b49cedcb40
Related bug:
https://bugzilla.xamarin.com/show_bug.cgi?id=44889
Diffstat (limited to 'main/Makefile.am')
-rw-r--r-- | main/Makefile.am | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/main/Makefile.am b/main/Makefile.am index 3d6b070471..b6611c20dc 100644 --- a/main/Makefile.am +++ b/main/Makefile.am @@ -21,9 +21,17 @@ clean-local: sln_clean cd external && $(MAKE) clean cd build && $(MAKE) clean -restore-packages: +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 +restore-packages: + @$(NUGET_RESTORE) + vcrevision: touch vcrevision |