14 rm -rf $(top_builddir)/bin
17 if test -d $(pkglibdir); then \
23 echo "`date +%Y-%m-%d` The Banshee Project <http://banshee.fm>"; \
25 echo "@Banshee $(VERSION)"; \
27 echo "@You probably are looking for the useful change summary detailed"; \
28 echo "@in the NEWS file, perfect for downstream maintainers."; \
30 echo "@If you care about commit-level changes, use 'git log' against"; \
31 echo "@a clone of our git repository (git://git.gnome.org/banshee)."; \
33 ) | tr '@' '\t' > $(top_distdir)/ChangeLog
37 LC_BUILD = $(top_builddir)/bin/share/locale
38 PO_FILES = $(addprefix po/, $(addsuffix .gmo, $(ALL_LINGUAS)))
39 MO_FILES = $(patsubst po/%.gmo, $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo, $(PO_FILES))
41 $(MO_FILES): $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo: po/%.gmo
46 @if test -z "$$BOCKBUILD_ENV"; then \
47 for env in $$(find $(top_srcdir) -maxdepth 1 -name \*.env); do \
48 echo "A bootstrap environment was found, but it does not"; \
49 echo "appear to be sourced into your current environment:"; \
53 echo "Source the environment first."; \
59 PROFILE_DEFAULT=--profile=log:time=fast,calls,noalloc,maxframes=5
60 PROFILE_HEAP=--profile=logging:heap=all,gc-dumps=-1
61 PROFILE_GUI=--profile=gui-thread-check
63 run: check-bootstrap-env $(MO_FILES)
64 (cd bin; $(MONO) --debug $(PROFILE_GUI) $(BANSHEE_DEV_MONO_OPTIONS) Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS))
66 run-profiled: check-bootstrap-env $(MO_FILES)
67 (cd bin; LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):/usr/local/lib $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) $(PROFILE_DEFAULT) Nereid.exe --uninstalled $(BANSHEE_DEV_OPTIONS))
69 run-logged: check-bootstrap-env $(MO_FILES)
70 (cd bin; $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS) | tee last-run-log)
72 run-mediapanel: check-bootstrap-env $(MO_FILES)
73 (cd bin; $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) MediaPanel.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS))
75 run-muinshee: check-bootstrap-env $(MO_FILES)
76 (cd bin; $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) Muinshee.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS))
79 extras/perf-analyze-log bin/last-run-log
81 run-trace: $(MO_FILES)
83 --trace=$$(find . -name "*dll" | sed 's/\.\///' | sed 's/\.dll//' | sort | tr "\n" , | sed 's/,$$//') \
84 Nereid.exe --uninstalled $(BANSHEE_DEV_OPTIONS) > ../banshee.trace)
86 run-profile-heap: $(MO_FILES)
87 (cd bin; $(MONO) $(PROFILE_HEAP) --debug $(BANSHEE_DEV_MONO_OPTIONS) Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS))
90 @echo "Did you set BANSHEE_DEV_MONO_OPTIONS to --trace=disabled?"; \
91 MONO_PID=$$(ps aux | grep mono | grep '\--uninstalled' | grep -v 'cd bin' | awk '{print$$2}'); \
96 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"; \
101 mdb -run Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS); \
107 echo "Starting csharp with Gtk#, Hyena, Banshee, etc referenced"; \
108 csharp -lib:bin/ -pkg:glib-sharp-2.0 -pkg:gtk-sharp-2.0 -pkg:gconf-sharp-2.0 -pkg:dbus-sharp -pkg:taglib-sharp -pkg:ipod-sharp -pkg:mono-addins $(addprefix "-reference:", $(wildcard bin/*.dll)); \
118 echo "class Entry { static void Main () { Hyena.Gui.TestModuleRunner.Run (); } }" > tester.cs; \
119 $(MCS) -r:Hyena.Gui.dll tester.cs; \
120 mono --debug tester.exe; \
125 make -C docs/Hyena update-docs; \
126 make -C docs/Banshee update-docs;
129 make -C docs/Hyena merge; \
130 make -C docs/Banshee merge;
133 @if [ -z '$(SINCE)' ]; then echo 'Specify a SINCE (e.g. make package-patch SINCE=1.6.0)'; exit 1; fi;
135 package-patch: check-since
136 @if [ -f 'since-$(SINCE).patch' ]; then echo 'since-$(SINCE).patch already exists'; exit 1; fi;
137 @git diff-tree -p "$(SINCE).." | filterdiff \
139 -x 'a/profile-configure' \
141 -x 'a/banshee.doap' \
144 -x \*extras/\* &> 'since-$(SINCE).patch'
145 @echo 'since-$(SINCE).patch is ready'
147 package-po: check-since
148 @if [ -f 'po-since-$(SINCE).tar.bz2' ]; then echo 'po-since-$(SINCE).tar.bz2 already exists'; exit 1; fi;
149 @git diff-tree -p '$(SINCE)..' po \
150 | awk -F / '{if ($$0 ~ /^+++ b\/po\/.+\.po$$/) print $$2 "/" $$3}' \
151 | xargs tar cfj po-since-$(SINCE).tar.bz2 2>/dev/null; \
152 if [ $$? -eq 123 ]; then \
153 echo 'No po changes since $(SINCE)'; \
158 intltool-extract.in \
175 MAINTAINERCLEANFILES = \
188 intltool-extract.in \