From a0dae2d111a5fc59a272f5b8a27885a54dcf6f32 Mon Sep 17 00:00:00 2001 From: Kangho Date: Wed, 31 Aug 2016 02:55:00 +0900 Subject: Update Makefile to support linux env (#309) --- Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ee588a5b..f7d1dde9 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,12 @@ +UNAME_S:=$(shell sh -c 'uname -s 2>/dev/null || echo not') +ifeq ($(UNAME_S),Darwin) + MONOHOME=/Library/Frameworks/Mono.framework/Libraries/mono +endif +ifeq ($(UNAME_S),Linux) + MONOHOME=/usr/lib/mono +endif + +DOTNETPCL=$(MONOHOME)/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile259/ CORE=Xamarin.Forms.Core COREASSEMBLY=$(CORE)/bin/Release/$(CORE).dll XAML=Xamarin.Forms.Xaml @@ -10,13 +19,13 @@ MDOC=mdoc docs: $(CORE).docs $(MAPS).docs $(XAML).docs $(CORE).docs: $(COREASSEMBLY) - $(MDOC) update --delete -o docs/$(CORE) $(COREASSEMBLY) -L /Library/Frameworks/Mono.framework/Libraries/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile259/ + $(MDOC) update --delete -o docs/$(CORE) $(COREASSEMBLY) -L $(DOTNETPCL) $(XAML).docs: $(XAMLASSEMBLY) - $(MDOC) update --delete -o docs/$(XAML) $(XAMLASSEMBLY) -L /Library/Frameworks/Mono.framework/Libraries/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile259/ + $(MDOC) update --delete -o docs/$(XAML) $(XAMLASSEMBLY) -L $(DOTNETPCL) $(MAPS).docs: $(MAPSASSEMBLY) - $(MDOC) update --delete -o docs/$(MAPS) $(MAPSASSEMBLY) -L /Library/Frameworks/Mono.framework/Libraries/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile259/ + $(MDOC) update --delete -o docs/$(MAPS) $(MAPSASSEMBLY) -L $(DOTNETPCL) $(COREASSEMBLY): .FORCE xbuild /property:Configuration=Release Xamarin.Forms.Core/Xamarin.Forms.Core.csproj -- cgit v1.2.3