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
COREASSEMBLY=$(CORE)/bin/Release/$(CORE).dll
XAML=Xamarin.Forms.Xaml
XAMLASSEMBLY=$(XAML)/bin/Release/$(XAML).dll
MAPS=Xamarin.Forms.Maps
MAPSASSEMBLY=$(MAPS)/bin/Release/$(MAPS).dll
2017-02-28 13:16:40 +03:00
PAGES=Xamarin.Forms.Pages
PAGESASSEMBLY=$(PAGES)/bin/Release/$(PAGES).dll
2016-11-22 17:41:01 +03:00
MDOC=mono tools/mdoc/mdoc.exe
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
xbuild /property:Configuration=Release Xamarin.Forms.Core/Xamarin.Forms.Core.csproj
$(XAMLASSEMBLY): .FORCE
xbuild /property:Configuration=Release Xamarin.Forms.Xaml/Xamarin.Forms.Xaml.csproj
$(MAPSASSEMBLY): .FORCE
xbuild /property:Configuration=Release Xamarin.Forms.Maps/Xamarin.Forms.Maps.csproj
2017-02-28 13:16:40 +03:00
$(PAGESASSEMBLY): .FORCE
xbuild /property:Configuration=Release Xamarin.Forms.Pages/Xamarin.Forms.Pages.csproj
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