blob: 5f98a55672786eb7231eda2c8b6ec85062a08448 (
plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
ALL_CSPROJ=$(wildcard *.csproj)
MAIN_SLN=$(top_builddir)/Main.sln
if ENABLE_MACPLATFORM
if RELEASE_BUILDS
PROFILE_NAME=ReleaseMac
else
PROFILE_NAME=DebugMac
endif
endif
if ENABLE_GNOMEPLATFORM
if RELEASE_BUILDS
PROFILE_NAME=ReleaseGnome
else
PROFILE_NAME=DebugGnome
endif
endif
if ENABLE_WINDOWSPLATFORM
if RELEASE_BUILDS
PROFILE_NAME=ReleaseWin32
else
PROFILE_NAME=DebugWin32
endif
endif
XBUILD=msbuild
XBUILD_VERBOSITY ?= normal
XBUILD_ARGS=/verbosity:$(XBUILD_VERBOSITY) /nologo /property:CodePage=65001
XBUILD_PROFILE=/property:Configuration=$(PROFILE_NAME)
# Figure out how far we are from top_builddir
DEPTH=$(shell echo "$(top_builddir)" | tr '/' '\n' | grep -c '..')
all: csproj_build
clean: csproj_clean
csproj_build:
@if test x$(SKIP) != xy -a $(DEPTH) -gt $(MAKELEVEL); then \
echo Building $(ALL_CSPROJ); \
for p in $(ALL_CSPROJ); do $(XBUILD) $(XBUILD_ARGS) $$p; done \
fi
csproj_clean:
@if test x$(SKIP) != xy -a $(DEPTH) -gt $(MAKELEVEL); then \
echo Cleaning $(ALL_CSPROJ); \
for p in $(ALL_CSPROJ); do $(XBUILD) $(XBUILD_ARGS) $$p /t:Clean; done \
fi
sln_build:
@echo Building $(MAIN_SLN)
ok=:; $(XBUILD) $(XBUILD_ARGS) /bl:MonoDevelop.binlog $(MAIN_SLN) $(XBUILD_PROFILE) || ok=false; echo @MonkeyWrench: AddFile: $$(pwd)/MonoDevelop.binlog; $$ok
sln_clean:
@echo Cleaning $(MAIN_SLN)
$(XBUILD) $(XBUILD_ARGS) $(MAIN_SLN) $(XBUILD_PROFILE) /t:Clean
print_extradist:
@echo $(WILDCARDED_FILES)
EXTS:=*.bmp *.cs *.csproj *.html *.png *.snk *.config *.stetic *.glade *.xml *.xsd *.exe.addins *.template *.tt *.txt *.targets *.props *.sh
ALL_FILES:= $(EXTS) \
$(addprefix */,$(EXTS)) \
$(addprefix */*/,$(EXTS)) \
$(addprefix */*/*/,$(EXTS)) \
$(addprefix */*/*/*/,$(EXTS)) \
$(addprefix */*/*/*/*/,$(EXTS)) \
$(wildcard icons/*) \
$(wildcard templates/*)
WILDCARDED_FILES:=$(wildcard $(ALL_FILES))
EXTRA_DIST = \
$(wildcard $(ALL_FILES))
.PHONY: all clean csproj_build csproj_clean sln_build sln_clean
|