-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathMakefile
51 lines (37 loc) · 1.73 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#General vars
ARGS?=/restore /p:Configuration=Release
all:
echo "Building FigmaSharp.Mac..."
msbuild /restore FigmaSharp.Mac.sln
clean:
find . -type d -name bin -exec rm -rf {} \;
find . -type d -name obj -exec rm -rf {} \;
find . -type d -name packages -exec rm -rf {} \;
pack:
msbuild tools/MonoDevelop.Figma/MonoDevelop.Figma.csproj $(ARGS) /p:CreatePackage=true
install:
msbuild tools/MonoDevelop.Figma/MonoDevelop.Figma.csproj $(ARGS) /p:InstallAddin=true
check-dependencies:
#updating the submodules
git submodule update --init --recursive
if [ ! -f ./nuget.exe ]; then \
echo "nuget.exe not found! downloading latest version" ; \
curl -O https://dist.nuget.org/win-x86-commandline/latest/nuget.exe ; \
fi
sdk: nuget-download
mono src/.nuget/nuget.exe pack FigmaSharp.Mac.nuspec
package: check-dependencies
msbuild FigmaSharp/FigmaSharp/FigmaSharp.csproj /p:Configuration=Release /restore
msbuild FigmaSharp/FigmaSharp.Cocoa/FigmaSharp.Cocoa.csproj /p:Configuration=Release /restore
mono nuget.exe restore FigmaSharp.Mac.sln
msbuild FigmaSharp/FigmaSharp/FigmaSharp.csproj $(ARGS)
msbuild FigmaSharp/FigmaSharp.Cocoa/FigmaSharp.Cocoa.csproj $(ARGS)
msbuild FigmaSharp.Controls/FigmaSharp.Controls/FigmaSharp.Controls.csproj $(ARGS)
msbuild FigmaSharp.Controls/FigmaSharp.Controls.Cocoa/FigmaSharp.Controls.Cocoa.csproj $(ARGS)
mono nuget.exe pack NuGet/FigmaSharp.Views.nuspec
mono nuget.exe pack NuGet/FigmaSharp.Views.Cocoa.nuspec
mono nuget.exe pack NuGet/FigmaSharp.nuspec
mono nuget.exe pack NuGet/FigmaSharp.Cocoa.nuspec
mono nuget.exe pack NuGet/FigmaSharp.Controls.nuspec
mono nuget.exe pack NuGet/FigmaSharp.Controls.Cocoa.nuspec
.PHONY: all clean pack install submodules sdk nuget-download check-dependencies