forked from anaisbetts/ModernHttpClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 1.37 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
MDTOOL ?= /Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool
.PHONY: all clean
all: ModernHttpClient.iOS.dll ModernHttpClient.Android.dll ModernHttpClient.Portable.dll
package: ModernHttpClient.iOS.dll ModernHttpClient.Android.dll ModernHttpClient.Portable.dll
mono vendor/nuget/NuGet.exe pack ./ModernHttpClient.nuspec
mv modernhttpclient*.nupkg ./build/
submodule:
git submodule sync
git submodule update --init --recursive
OkHttp.dll: submodule
$(MDTOOL) build -c:Release ./vendor/okhttp/OkHttp/OkHttp.csproj
cp ./vendor/okhttp/OkHttp/bin/Release/OkHttp.dll ./vendor/okhttp/OkHttp.dll
ModernHttpClient.Android.dll: OkHttp.dll
$(MDTOOL) build -c:Release ./src/ModernHttpClient/ModernHttpClient.Android.csproj
mkdir -p ./build/MonoAndroid
mv ./src/ModernHttpClient/bin/Release/MonoAndroid/* ./build/MonoAndroid
ModernHttpClient.iOS.dll:
$(MDTOOL) build -c:Release ./src/ModernHttpClient/ModernHttpClient.iOS.csproj
mkdir -p ./build/MonoTouch
mv ./src/ModernHttpClient/bin/Release/MonoTouch/* ./build/MonoTouch
ModernHttpClient.Portable.dll:
$(MDTOOL) build -c:Release ./src/ModernHttpClient/ModernHttpClient.Portable.csproj
mkdir -p ./build/Portable-Net45+WinRT45+WP8+WPA81
mv ./src/ModernHttpClient/bin/Release/Portable-Net45+WinRT45+WP8+WPA81/Modern* ./build/Portable-Net45+WinRT45+WP8+WPA81
clean:
$(MDTOOL) build -t:Clean ModernHttpClient.sln
rm *.dll
rm -rf build