summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKangho <rookiejava+github@gmail.com>2016-08-31 02:55:00 +0900
committerJason Smith <jason.smith@xamarin.com>2016-08-30 10:55:00 -0700
commita0dae2d111a5fc59a272f5b8a27885a54dcf6f32 (patch)
tree4122c8b245bc560e82788c8d21b4dc5a4c4fe8ad /Makefile
parent5e553f6195e66e48688b8ab324f1bab1e9251f0a (diff)
downloadxamarin-forms-a0dae2d111a5fc59a272f5b8a27885a54dcf6f32.tar.gz
xamarin-forms-a0dae2d111a5fc59a272f5b8a27885a54dcf6f32.tar.bz2
xamarin-forms-a0dae2d111a5fc59a272f5b8a27885a54dcf6f32.zip
Update Makefile to support linux env (#309)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
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