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

10.1.1 by Jo Shields
Import upstream version 1.9.2+dfsg
1
SUBDIRS = contrib src po man theme-icons build tests
1 by Sebastian Dröge
Import upstream version 0.9
2
10.2.5 by Stefan Ebner
Import upstream version 2.2.2+dfsg
3
#capture aclocal flags for autoreconf
4
ACLOCAL_AMFLAGS=$(ACLOCAL_FLAGS)
5
1 by Sebastian Dröge
Import upstream version 0.9
6
bin_SCRIPTS = monodevelop mdtool
7
10.2.3 by Jo Shields
Import upstream version 2.2+dfsg
8
buildinfo = $(top_builddir)/build/bin/buildinfo
9
1 by Sebastian Dröge
Import upstream version 0.9
10
all:
11
10.2.3 by Jo Shields
Import upstream version 2.2+dfsg
12
vcrevision:
13
	@if test -d ./.svn; then \
14
		version=$$( \
15
			LANG=C; export LANG; \
16
			svn info | sed -n -e '/Last Changed Rev/ s/.*: //p'; \
17
		); \
18
		modified=$$( \
19
			LANG=C; export LANG; \
20
			svn st | grep -v ^\? | wc -l; \
21
		); \
22
		if test $$modified != 0; then \
23
			version="$$version (modified)"; \
24
		fi; \
25
		echo "SVN revision: $$version" > "vcrevision"; \
26
	else \
27
		if test ! -f ./vcrevision; then \
28
			echo "SVN revision: unknown" > "vcrevision"; \
29
		fi; \
30
	fi
31
32
$(buildinfo): vcrevision
33
	@mkdir -p "$(top_builddir)/build/bin"
34
	@cp "$(top_srcdir)/vcrevision" "$@"
35
	@echo "Build date: $$(date -u +'%Y-%m-%d %H:%M:%S%z')" >> "$@"
36
	@echo "Updated build information"
37
	@cat $(buildinfo)
38
39
buildinfodir = $(MD_ASSEMBLY_DIR)
40
buildinfo_DATA = $(buildinfo)
41
1 by Sebastian Dröge
Import upstream version 0.9
42
desktopdir = $(datadir)/applications
43
desktop_DATA = monodevelop.desktop
44
45
xdgmimedir = $(datadir)/mime/packages
46
xdgmime_DATA = monodevelop.xml
47
9 by Mario Limonciello
Import upstream version 0.18.1+dfsg
48
pkgconfig_in_files = monodevelop.pc.in monodevelop-core-addins.pc.in
1 by Sebastian Dröge
Import upstream version 0.9
49
50
pkgconfigdir= $(prefix)/lib/pkgconfig
51
pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc)
52
53
if ENABLE_UPDATE_MIMEDB
54
55
install-data-hook:
56
	$(UPDATE_MIME_DB) $(DESTDIR)$(datadir)/mime
57
58
uninstall-hook:
59
	$(UPDATE_MIME_DB) $(DESTDIR)$(datadir)/mime
60
61
endif # ENABLE_UPDATE_MIMEDB
62
2 by Sebastian Dröge
Import upstream version 0.10
63
PACKAGES = \
9 by Mario Limonciello
Import upstream version 0.18.1+dfsg
64
	build/bin/MonoDevelop.Core.Gui.addin.xml \
2 by Sebastian Dröge
Import upstream version 0.10
65
	build/AddIns/MonoDevelop.Documentation.addin.xml \
9 by Mario Limonciello
Import upstream version 0.18.1+dfsg
66
	build/bin/MonoDevelop.Ide.addin.xml \
67
	build/bin/MonoDevelop.Projects.addin.xml \
68
	build/bin/MonoDevelop.Projects.Gui.addin.xml \
2 by Sebastian Dröge
Import upstream version 0.10
69
	build/AddIns/MonoDevelop.SourceEditor.addin.xml \
70
	build/AddIns/BackendBindings/BooBinding.addin.xml \
71
	build/AddIns/BackendBindings/CSharpBinding.addin.xml \
72
	build/AddIns/BackendBindings/ILAsmBinding.addin.xml \
73
	build/AddIns/BackendBindings/JavaBinding.addin.xml \
74
	build/AddIns/BackendBindings/VBNetBinding.addin.xml \
75
	build/AddIns/MonoQuery/MonoQuery.addin.xml \
76
	build/AddIns/NUnit/MonoDevelopNUnit.addin.xml \
77
	build/AddIns/MonoDeveloperExtensions/MonoDeveloperExtensions.addin.xml \
78
	build/AddIns/prj2makesharp/prj2make-sharp-lib.addin.xml \
79
	build/AddIns/MonoDevelop.GtkCore/MonoDevelop.GtkCore.addin.xml \
80
	build/AddIns/ChangeLogAddIn/ChangeLogAddIn.addin.xml \
4 by Sebastian Dröge
Import upstream version 0.11+svn20060818
81
	build/AddIns/WelcomePage/WelcomePage.addin.xml \
82
	build/AddIns/MonoDevelop.Autotools/MonoDevelop.Autotools.addin.xml \
83
	build/AddIns/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.addin.xml \
5 by Sebastian Dröge
Import upstream version 0.12
84
	build/AddIns/AspNetAddIn/AspNetAddIn.addin.xml \
85
	build/AddIns/AspNetAddIn/AspNetEdit.addin.xml
2 by Sebastian Dröge
Import upstream version 0.10
86
87
DOCFILES = \
88
	build/bin/MonoDevelop.Core.dll \
9 by Mario Limonciello
Import upstream version 0.18.1+dfsg
89
	build/bin/MonoDevelop.Components.dll \
90
	build/bin/MonoDevelop.Core.Gui.dll \
2 by Sebastian Dröge
Import upstream version 0.10
91
	build/AddIns/MonoDevelop.Documentation.dll \
9 by Mario Limonciello
Import upstream version 0.18.1+dfsg
92
	build/bin/MonoDevelop.Ide.dll \
93
	build/bin/MonoDevelop.Projects.dll \
94
	build/bin/MonoDevelop.Projects.Gui.dll
2 by Sebastian Dröge
Import upstream version 0.10
95
96
mpacks: $(PACKAGES)
97
	test -z "packages" || mkdir -p packages
98
	mono build/bin/mdrun.exe setup p $(PACKAGES:%=%) -d:packages
99
	mono build/bin/mdrun.exe setup rb packages
100
101
apidocs:
9 by Mario Limonciello
Import upstream version 0.18.1+dfsg
102
	monodocer $(DOCFILES:%=--assembly:%) -delete --path docs/api
103
	mkdir -p docs/sources
104
	mdassembler --out docs/sources/monodevelop-reference --ecma docs/api
105
	mautil -reg build/bin reg-build
106
	mautil -reg build/bin -p build/bin info --all --xml > docs/extension-model.xml
107
	mdassembler --out docs/sources/monodevelop-extension-guide --addins docs/extension-model.xml
2 by Sebastian Dröge
Import upstream version 0.10
108
#	cd docs/apiguide && mdassembler --out monodevelop-api-guide --xhtml toc.xhtml && mv monodevelop-api-guide.zip ../web/sources
109
9 by Mario Limonciello
Import upstream version 0.18.1+dfsg
110
MD_LAUNCH=$(MD_LAUNCH_SETUP) exec -a "monodevelop" $(RUNTIME)
111
1 by Sebastian Dröge
Import upstream version 0.9
112
run: runmd
113
114
runmd: $(PROGRAM)
10 by Stefan Ebner
Import upstream version 1.0+dfsg
115
	$(MD_LAUNCH) --debug $(MD_BIN_PATH)/MonoDevelop.exe
1 by Sebastian Dröge
Import upstream version 0.9
116
10.1.1 by Jo Shields
Import upstream version 1.9.2+dfsg
117
run-debug: $(PROGRAM)
10.1.2 by Mirco Bauer
Import upstream version 1.9.3+dfsg
118
	MONODEVELOP_CONSOLE_LOG_LEVEL=All $(MD_LAUNCH) --debug=casts $(MD_BIN_PATH)/MonoDevelop.exe
10.1.1 by Jo Shields
Import upstream version 1.9.2+dfsg
119
1 by Sebastian Dröge
Import upstream version 0.9
120
run-profile: $(PROGRAM)
10 by Stefan Ebner
Import upstream version 1.0+dfsg
121
	$(MD_LAUNCH) -O=inline --profile $(MD_BIN_PATH)/MonoDevelop.exe
9 by Mario Limonciello
Import upstream version 0.18.1+dfsg
122
123
run-profile-stat: $(PROGRAM)
10.1.1 by Jo Shields
Import upstream version 1.9.2+dfsg
124
	$(MD_LAUNCH) --profile=logging:stat $(MD_BIN_PATH)/MonoDevelop.exe
1 by Sebastian Dröge
Import upstream version 0.9
125
10.2.6 by Jo Shields
Import upstream version 2.4+dfsg
126
run-trace: $(PROGRAM)
127
	$(MD_LAUNCH_SETUP) MONODEVELOP_TRACE=1 exec strace -ttt -f -o md.strace mono $(MD_BIN_PATH)/MonoDevelop.exe
128
129
plot-trace:
130
	if [ ! -e 'plot-timeline.py' ]; then wget http://gitorious.org/performance-scripts/mainline/blobs/raw/master/plot-timeline.py; fi
131
	python plot-timeline.py -o md-trace.png  md.strace
132
1 by Sebastian Dröge
Import upstream version 0.9
133
run-profile-heap: $(PROGRAM)
10 by Stefan Ebner
Import upstream version 1.0+dfsg
134
	$(MD_LAUNCH) -O=inline --profile=heap:heaplog $(MD_BIN_PATH)/MonoDevelop.exe
9 by Mario Limonciello
Import upstream version 0.18.1+dfsg
135
	
136
check-addins:
10 by Stefan Ebner
Import upstream version 1.0+dfsg
137
	$(MDTOOL_RUN) setup reg-build -v
1 by Sebastian Dröge
Import upstream version 0.9
138
10.1.1 by Jo Shields
Import upstream version 1.9.2+dfsg
139
test:
140
	cd tests/UnitTests && make test fixture=$(fixture)
141
142
app-dir: all
143
	cd build && make app-dir
144
#mkdir -p $(MAC_APP_DIR)/Contents/{MacOS,Resources}
145
#mkdir -p $(MAC_APP_LIB_DIR)
146
#cp -a build/AddIns $(MAC_APP_LIB_DIR)
147
#cp -a build/data $(MAC_APP_LIB_DIR)
148
#cp -a build/bin $(MAC_APP_LIB_DIR)
149
1 by Sebastian Dröge
Import upstream version 0.9
150
# we can't use the variables that are conditionally defined
151
EXTRA_DIST = $(bin_SCRIPTS) $(desktop_DATA) $(pixmap_DATA) \
10.2.3 by Jo Shields
Import upstream version 2.2+dfsg
152
	monodevelop.xml $(pkgconfig_in_files) vcrevision
1 by Sebastian Dröge
Import upstream version 0.9
153
154
DISTCLEANFILES = monodevelop intltool-extract intltool-merge intltool-update \
9 by Mario Limonciello
Import upstream version 0.18.1+dfsg
155
	$(pkgconfig_DATA) 
10 by Stefan Ebner
Import upstream version 1.0+dfsg
156
157
include $(top_srcdir)/Makefile.include
158
159
#
160
# Force distuninstallcheck to ignore files created by cache-rebuilding commands (update-mime-database etc)
161
#
162
# From BEAST (LGPL license): http://svn.gnome.org/viewvc/beast/trunk/Makefile.am
163
filter_stale_uninstalled = \
10.1.1 by Jo Shields
Import upstream version 1.9.2+dfsg
164
    | egrep -v '^.*/share/mime/.*$$' \
10 by Stefan Ebner
Import upstream version 1.0+dfsg
165
    | egrep -v '^.*./share/icons/hicolor/icon-theme\.cache$$'
10.1.1 by Jo Shields
Import upstream version 1.9.2+dfsg
166
    
10 by Stefan Ebner
Import upstream version 1.0+dfsg
167
filter_stale_buildfiles       = | egrep -v '^./report.out$$'
168
distuninstallcheck_listfiles  = find . -type f -print 		# automake-1.9 setting
169
distuninstallcheck_listfiles += $(filter_stale_uninstalled)	# amend by required filtering
170
distcleancheck_listfiles      = find . -type f -print		# automake-1.9 setting
171
distcleancheck_listfiles     += $(filter_stale_buildfiles)	# amend by required filtering
10.2.3 by Jo Shields
Import upstream version 2.2+dfsg
172
173
.PHONY: vcrevision