1
SUBDIRS = \
2
	build \
3
	data \
4
	libbanshee \
5
	gstreamer \
6
	src \
7
	docs \
8
	tests \
9
	extras \
10
	po
11
12
# Important targets
13
14
clean-local:
15
	rm -rf $(top_builddir)/bin
16
17
uninstall-hook:
18
	if test `find $(pkglibdir) | wc -l` -eq 1; then \
19
		rmdir $(pkglibdir); \
20
	fi
21
22
# Developer targets
23
24
LC_BUILD = $(top_builddir)/bin/share/locale
25
PO_FILES = $(addprefix po/, $(addsuffix .gmo, $(ALL_LINGUAS)))
26
MO_FILES = $(patsubst po/%.gmo, $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo, $(PO_FILES))
27
28
$(MO_FILES): $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo: po/%.gmo
29
	$(mkdir_p) $(dir $@)
30
	cp -af '$<' '$@'
31
32
run: $(MO_FILES)
33
	(cd bin; $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS) | tee last-run-log)
34
35
run-perf: run
36
	extras/perf-analyze-log bin/last-run-log
37
38
gdb:
39
	@pushd bin; \
40
	gdb mono --eval-command="handle SIGXCPU SIG35 SIGPWR nostop noprint" --eval-command="b g_return_if_fail_warning" --eval-command="r --debug Nereid.exe --debug --uninstalled"; \
41
	popd;
42
43
mdb:
44
	@pushd bin; \
45
	mdb -run -args Nereid.exe --debug --uninstalled"; \
46
	popd;
47
48
test:
49
	@pushd tests; \
50
	make test \
51
	popd;
52
53
hg:
54
	pushd bin; \
55
	echo "class Entry { static void Main () { Hyena.Gui.TestModuleRunner.Run (); } }" > tester.cs; \
56
	gmcs -r:Hyena.Gui.dll tester.cs; \
57
	mono --debug tester.exe; \
58
	rm tester.*; \
59
	popd; 
60
61
EXTRA_DIST = \
62
	intltool-extract.in \
63
	intltool-merge.in \
64
	intltool-update.in \
65
	AUTHORS \
66
	HACKING
67
68
CLEANFILES = \
69
	intltool-extract \
70
	intltool-update \
71
	intltool-merge
72
73
DISTCLEANFILES = \
74
	*.bak \
75
	*~ \
76
	*.pidb
77
78
MAINTAINERCLEANFILES = \
79
	compile \
80
	INSTALL \
81
	config.h.in \
82
	aclocal.m4 \
83
	ltmain.sh \
84
	Makefile.in \
85
	depcomp \
86
	missing \
87
	install-sh \
88
	configure \
89
	config.sub \
90
	config.guess \
91
	intltool-extract.in \
92
	intltool-merge.in   \
93
	intltool-update.in  \
94
	mkinstalldirs