diff options
author | Kangho <rookiejava+github@gmail.com> | 2016-08-31 02:55:00 +0900 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-08-30 10:55:00 -0700 |
commit | a0dae2d111a5fc59a272f5b8a27885a54dcf6f32 (patch) | |
tree | 4122c8b245bc560e82788c8d21b4dc5a4c4fe8ad /Makefile | |
parent | 5e553f6195e66e48688b8ab324f1bab1e9251f0a (diff) | |
download | xamarin-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-- | Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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 |