Update Finnish translation
[banshee.git] / Makefile.am
blob6fbd6ff9c2d33d74a645f903dd5adf208b7f11e7
1 SUBDIRS = \
2         build \
3         data \
4         help \
5         src \
6         docs \
7         tests \
8         extras \
9         po
11 # Important targets
13 clean-local:
14         rm -rf $(top_builddir)/bin
16 uninstall-hook:
17         if test -d $(pkglibdir); then \
18                 rmdir $(pkglibdir); \
19         fi
21 dist-hook:
22         @( \
23           echo "`date +%Y-%m-%d`  The Banshee Project  <http://banshee.fm>"; \
24           echo; \
25           echo "@Banshee $(VERSION)"; \
26           echo; \
27           echo "@You probably are looking for the useful change summary detailed"; \
28           echo "@in the NEWS file, perfect for downstream maintainers."; \
29           echo; \
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)."; \
32           echo; \
33         ) | tr '@' '\t' > $(top_distdir)/ChangeLog
35 # Developer targets
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
42         $(MKDIR_P) $(dir $@)
43         cp -rf '$<' '$@'
45 check-bootstrap-env:
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:"; \
50                         echo; \
51                         echo "    $$env"; \
52                         echo; \
53                         echo "Source the environment first."; \
54                         echo; \
55                         exit 1; \
56                 done; \
57         fi
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))
78 run-perf: run-logged
79         extras/perf-analyze-log bin/last-run-log
81 run-trace: $(MO_FILES)
82         (cd bin; $(MONO) \
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))
89 query-trace:
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}'); \
92         kill -USR2 $$MONO_PID
94 gdb:
95         @pushd bin; \
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"; \
97         popd;
99 mdb:
100         @pushd bin; \
101         mdb -run Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS); \
102         popd;
104 csharp:
105         @pushd .; \
106     echo ""; \
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)); \
109         popd;
111 test: all
112         @pushd tests; \
113         make test \
114         popd;
117         pushd bin; \
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; \
121         rm tester.*; \
122         popd; 
124 update-docs:
125         make -C docs/Hyena update-docs; \
126         make -C docs/Banshee update-docs;
128 merge-docs:
129         make -C docs/Hyena merge; \
130         make -C docs/Banshee merge;
132 check-since:
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 \
138                 -x 'a/Makefile.am' \
139                 -x 'a/profile-configure' \
140                 -x 'a/po/*' \
141                 -x 'a/banshee.doap' \
142                 -x \*.csproj \
143                 -x \*.sln \
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)'; \
154                 exit 0; \
155         fi
157 EXTRA_DIST = \
158         intltool-extract.in \
159         intltool-merge.in \
160         intltool-update.in \
161         autogen.sh \
162         AUTHORS \
163         HACKING
165 CLEANFILES = \
166         intltool-extract \
167         intltool-update \
168         intltool-merge
170 DISTCLEANFILES = \
171         *.bak \
172         *~ \
173         *.pidb
175 MAINTAINERCLEANFILES = \
176         compile \
177         INSTALL \
178         config.h.in \
179         aclocal.m4 \
180         ltmain.sh \
181         Makefile.in \
182         depcomp \
183         missing \
184         install-sh \
185         configure \
186         config.sub \
187         config.guess \
188         intltool-extract.in \
189         intltool-merge.in   \
190         intltool-update.in  \
191         mkinstalldirs