File: xbuild.include

package info (click to toggle)
mono-addins 1.0+git20130406.adcd75b-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 4,048 kB
  • ctags: 7,075
  • sloc: cs: 42,027; sh: 616; makefile: 358; xml: 16; ansic: 7
file content (63 lines) | stat: -rw-r--r-- 1,599 bytes parent folder | download | duplicates (3)
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
ALL_CSPROJ=$(wildcard *.csproj)
MAIN_SLN=$(top_builddir)/Mono.Addins.sln

if ENABLE_GUI
PROFILE_NAME=Debug
else
PROFILE_NAME=DebugNotGui
endif

XBUILD=xbuild
XBUILD_VERBOSITY=quiet
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: $(POLICY_ASSEMBLIES)
	@if test x$(SKIP) != xy ; 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
	rm -f $(CLEANFILES)

sln_build:
	@echo Building $(MAIN_SLN)
	@$(XBUILD) $(XBUILD_ARGS) $(MAIN_SLN) $(XBUILD_PROFILE)

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

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