Skip to content

Instantly share code, notes, and snippets.

@VincentDondain
Created March 29, 2016 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VincentDondain/6abb8c49f6f7bf68813c to your computer and use it in GitHub Desktop.
Save VincentDondain/6abb8c49f6f7bf68813c to your computer and use it in GitHub Desktop.
commit 4805e7a2680ead3e72ed60dad3a58da999008ecf
Author: VincentDondain <vincent.dondain@xamarin.com>
Date: Tue Mar 29 13:54:00 2016 +0100
[makefile] Show error message if we're missing buildinfo
This can happen if you forget to run make install.
diff --git a/Makefile b/Makefile
index 685d44c..d162b9e 100644
--- a/Makefile
+++ b/Makefile
@@ -146,12 +146,14 @@ install-system: install-system-ios install-system-mac
$(Q) $(MAKE) install-symlinks MAC_DESTDIR=/ MAC_INSTALL_VERSION=Current IOS_DESTDIR=/ IOS_INSTALL_VERSION=Current -C msbuild V=$(V)
install-system-ios:
+ @if ! test -s "$(IOS_DESTDIR)/$(MONOTOUCH_PREFIX)/buildinfo"; then echo "The Xamarin.iOS build seems incomplete. Did you run \"make install\"?"; exit 1; fi
$(Q) rm -f /Library/Frameworks/Xamarin.iOS.framework/Versions/Current
$(Q) mkdir -p /Library/Frameworks/Xamarin.iOS.framework/Versions
$(Q) ln -s $(IOS_DESTDIR)$(MONOTOUCH_PREFIX) /Library/Frameworks/Xamarin.iOS.framework/Versions/Current
$(Q) echo Installed Xamarin.iOS into /Library/Frameworks/Xamarin.iOS.framework/Versions/Current
install-system-mac:
+ @if ! test -s "$(MAC_DESTDIR)/$(MAC_FRAMEWORK_CURRENT_DIR)/buildinfo" ; then echo "The Xamarin.Mac build seems incomplete. Did you run \"make install\"?"; exit 1; fi
$(Q) rm -f $(MAC_FRAMEWORK_DIR)/Versions/Current
$(Q) mkdir -p $(MAC_FRAMEWORK_DIR)/Versions
$(Q) ln -s $(MAC_DESTDIR)$(MAC_FRAMEWORK_CURRENT_DIR) $(MAC_FRAMEWORK_DIR)/Versions/Current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment