maui-linux/Makefile

58 строки
1.9 KiB
Makefile
Исходник Обычный вид История

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/
2016-03-22 23:02:25 +03:00
CORE=Xamarin.Forms.Core
2017-12-05 18:37:32 +03:00
COREASSEMBLY=$(CORE)/bin/Release/netstandard2.0/$(CORE).dll
2016-03-22 23:02:25 +03:00
XAML=Xamarin.Forms.Xaml
2017-12-05 18:37:32 +03:00
XAMLASSEMBLY=$(XAML)/bin/Release/netstandard2.0/$(XAML).dll
2016-03-22 23:02:25 +03:00
MAPS=Xamarin.Forms.Maps
2017-12-05 18:37:32 +03:00
MAPSASSEMBLY=$(MAPS)/bin/Release/netstandard2.0/$(MAPS).dll
2017-02-28 13:16:40 +03:00
PAGES=Xamarin.Forms.Pages
2017-12-05 18:37:32 +03:00
PAGESASSEMBLY=$(PAGES)/bin/Release/netstandard2.0/$(PAGES).dll
MDOC=mdoc
2016-03-22 23:02:25 +03:00
2017-02-28 13:16:40 +03:00
docs: $(CORE).docs $(MAPS).docs $(XAML).docs $(PAGES).docs
2016-03-22 23:02:25 +03:00
$(CORE).docs: $(COREASSEMBLY)
$(MDOC) update --delete -o docs/$(CORE) $(COREASSEMBLY) -L $(DOTNETPCL)
2016-03-22 23:02:25 +03:00
$(XAML).docs: $(XAMLASSEMBLY)
$(MDOC) update --delete -o docs/$(XAML) $(XAMLASSEMBLY) -L $(DOTNETPCL)
2016-03-22 23:02:25 +03:00
$(MAPS).docs: $(MAPSASSEMBLY)
$(MDOC) update --delete -o docs/$(MAPS) $(MAPSASSEMBLY) -L $(DOTNETPCL)
2016-03-22 23:02:25 +03:00
2017-02-28 13:16:40 +03:00
$(PAGES).docs: $(PAGESASSEMBLY)
$(MDOC) update --delete -o docs/$(PAGES) $(PAGESASSEMBLY) -L $(DOTNETPCL)
2016-03-22 23:02:25 +03:00
$(COREASSEMBLY): .FORCE
2017-12-05 18:37:32 +03:00
msbuild /property:Configuration=Release Xamarin.Forms.Core/Xamarin.Forms.Core.csproj
2016-03-22 23:02:25 +03:00
$(XAMLASSEMBLY): .FORCE
2017-12-05 18:37:32 +03:00
msbuild /property:Configuration=Release Xamarin.Forms.Xaml/Xamarin.Forms.Xaml.csproj
2016-03-22 23:02:25 +03:00
$(MAPSASSEMBLY): .FORCE
2017-12-05 18:37:32 +03:00
msbuild /property:Configuration=Release Xamarin.Forms.Maps/Xamarin.Forms.Maps.csproj
2016-03-22 23:02:25 +03:00
2017-02-28 13:16:40 +03:00
$(PAGESASSEMBLY): .FORCE
2017-12-05 18:37:32 +03:00
msbuild /property:Configuration=Release Xamarin.Forms.Pages/Xamarin.Forms.Pages.csproj
2017-02-28 13:16:40 +03:00
2016-03-22 23:02:25 +03:00
htmldocs: docs
$(MDOC) export-html -o htmldocs docs/*
xmldocs: docs
$(MDOC) export-msxdoc -o docs/$(CORE).xml docs/$(CORE)
$(MDOC) export-msxdoc -o docs/$(XAML).xml docs/$(XAML)
$(MDOC) export-msxdoc -o docs/$(MAPS).xml docs/$(MAPS)
2017-02-28 13:16:40 +03:00
$(MDOC) export-msxdoc -o docs/$(PAGES).xml docs/$(PAGES)
2016-03-22 23:02:25 +03:00
.FORCE:
2017-02-28 13:16:40 +03:00
.PHONY: .FORCE $(CORE).docs $(MAPS).docs $(XAML).docs $(PAGES).docs htmldocs xmldocs