~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/mono-addins/xbuild.include

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ALL_CSPROJ=$(wildcard *.csproj)
 
2
MAIN_SLN=$(top_builddir)/Mono.Addins.sln
 
3
 
 
4
if ENABLE_GUI
 
5
PROFILE_NAME=Debug
 
6
else
 
7
PROFILE_NAME=DebugNotGui
 
8
endif
 
9
 
 
10
XBUILD=xbuild
 
11
XBUILD_VERBOSITY=quiet
 
12
XBUILD_ARGS=/verbosity:$(XBUILD_VERBOSITY) /nologo /property:CodePage=65001
 
13
XBUILD_PROFILE=/property:Configuration=$(PROFILE_NAME)
 
14
 
 
15
# Figure out how far we are from top_builddir
 
16
DEPTH=$(shell echo "$(top_builddir)" | tr '/' '\n' | grep -c '..')
 
17
 
 
18
all: csproj_build
 
19
 
 
20
clean: csproj_clean
 
21
 
 
22
csproj_build: $(POLICY_ASSEMBLIES)
 
23
        @if test x$(SKIP) != xy ; then \
 
24
        echo Building $(ALL_CSPROJ); \
 
25
        for p in $(ALL_CSPROJ); do $(XBUILD) $(XBUILD_ARGS) $$p; done \
 
26
        fi
 
27
 
 
28
csproj_clean:
 
29
        @if test x$(SKIP) != xy -a $(DEPTH) -gt $(MAKELEVEL); then \
 
30
        echo Cleaning $(ALL_CSPROJ); \
 
31
        for p in $(ALL_CSPROJ); do $(XBUILD) $(XBUILD_ARGS) $$p /t:Clean; done \
 
32
        fi
 
33
        rm -f $(CLEANFILES)
 
34
 
 
35
sln_build:
 
36
        @echo Building $(MAIN_SLN)
 
37
        @$(XBUILD) $(XBUILD_ARGS) $(MAIN_SLN) $(XBUILD_PROFILE)
 
38
 
 
39
sln_clean:
 
40
        @echo Cleaning $(MAIN_SLN)
 
41
        @$(XBUILD) $(XBUILD_ARGS) $(MAIN_SLN) $(XBUILD_PROFILE) /t:Clean
 
42
 
 
43
print_extradist:
 
44
        @echo $(WILDCARDED_FILES)
 
45
 
 
46
EXTS:=*.bmp *.cs *.csproj *.html *.png *.snk *.config *.stetic *.glade *.xml *.xsd *.exe.addins *.template *.tt *.txt
 
47
 
 
48
ALL_FILES:=     $(EXTS) \
 
49
                $(addprefix */,$(EXTS))         \
 
50
                $(addprefix */*/,$(EXTS))       \
 
51
                $(addprefix */*/*/,$(EXTS))     \
 
52
                $(addprefix */*/*/*/,$(EXTS))   \
 
53
                $(addprefix */*/*/*/*/,$(EXTS)) \
 
54
                $(wildcard icons/*)             \
 
55
                $(wildcard templates/*)
 
56
 
 
57
WILDCARDED_FILES:=$(wildcard $(ALL_FILES))
 
58
 
 
59
EXTRA_DIST = \
 
60
        $(wildcard $(ALL_FILES))
 
61
 
 
62
 
 
63
.PHONY: all clean csproj_build csproj_clean sln_build sln_clean