[l10n] Updated German translation
[banshee:bl8-clone.git] / Makefile.am
1 SUBDIRS = \
2         build \
3         data \
4         help \
5         libbanshee \
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 dist-hook:
23         @( \
24           echo "`date +%Y-%m-%d`  The Banshee Project  <http://banshee.fm>"; \
25           echo; \
26           echo "@Banshee $(VERSION)"; \
27           echo; \
28           echo "@You probably are looking for the useful change summary detailed"; \
29           echo "@in the NEWS file, perfect for downstream maintainers."; \
30           echo; \
31           echo "@If you care about commit-level changes, use 'git log' against"; \
32           echo "@a clone of our git repository (git://git.gnome.org/banshee)."; \
33           echo; \
34         ) | tr '@' '\t' > $(top_distdir)/ChangeLog
35
36 # Developer targets
37
38 LC_BUILD = $(top_builddir)/bin/share/locale
39 PO_FILES = $(addprefix po/, $(addsuffix .gmo, $(ALL_LINGUAS)))
40 MO_FILES = $(patsubst po/%.gmo, $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo, $(PO_FILES))
41
42 $(MO_FILES): $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo: po/%.gmo
43         $(mkdir_p) $(dir $@)
44         cp -rf '$<' '$@'
45
46 check-bootstrap-env:
47         @if test -z "$$BOCKBUILD_ENV"; then \
48                 for env in $$(find $(top_srcdir) -maxdepth 1 -name \*.env); do \
49                         echo "A bootstrap environment was found, but it does not"; \
50                         echo "appear to be sourced into your current environment:"; \
51                         echo; \
52                         echo "    $$env"; \
53                         echo; \
54                         echo "Source the environment first."; \
55                         echo; \
56                         exit 1; \
57                 done; \
58         fi
59
60 run: check-bootstrap-env $(MO_FILES)
61         (cd bin; $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS))
62
63 run-profiled: check-bootstrap-env $(MO_FILES)
64         (cd bin; LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):/usr/local/lib $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) --profile=log:time=fast,calls,noalloc,maxframes=5 Nereid.exe --uninstalled $(BANSHEE_DEV_OPTIONS))
65
66 run-logged: check-bootstrap-env $(MO_FILES)
67         (cd bin; $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS) | tee last-run-log)
68
69 run-muinshee: check-bootstrap-env $(MO_FILES)
70         (cd bin; $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) Muinshee.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS))
71
72 run-perf: run-logged
73         extras/perf-analyze-log bin/last-run-log
74
75 run-trace: $(MO_FILES)
76         (cd bin; $(MONO) \
77                 --trace=$$(find . -name "*dll" | sed 's/\.\///' | sed 's/\.dll//' | sort | tr "\n" , | sed 's/,$$//') \
78                 Nereid.exe --uninstalled $(BANSHEE_DEV_OPTIONS) > ../banshee.trace)
79
80 run-profile-heap: $(MO_FILES)
81         (cd bin; $(MONO) --profile=logging:heap=all,gc-dumps=-1 --debug $(BANSHEE_DEV_MONO_OPTIONS) Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS))
82
83 query-trace:
84         @echo "Did you set BANSHEE_DEV_MONO_OPTIONS to --trace=disabled?"; \
85         MONO_PID=$$(ps aux | grep mono | grep '\--uninstalled' | grep -v 'cd bin' | awk '{print$$2}'); \
86         kill -USR2 $$MONO_PID
87
88 push-meego:
89         @extras/push-meego
90
91 monitor-meego:
92         @extras/monitor-meego
93
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;
98
99 mdb:
100         @pushd bin; \
101         mdb -run Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS); \
102         popd;
103
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;
110
111 test:
112         @pushd tests; \
113         make test \
114         popd;
115
116 hg:
117         pushd bin; \
118         echo "class Entry { static void Main () { Hyena.Gui.TestModuleRunner.Run (); } }" > tester.cs; \
119         gmcs -r:Hyena.Gui.dll tester.cs; \
120         mono --debug tester.exe; \
121         rm tester.*; \
122         popd; 
123
124 update-docs:
125         make -C docs/Hyena update-docs; \
126         make -C docs/Banshee update-docs;
127
128 merge-docs:
129         make -C docs/Hyena merge; \
130         make -C docs/Banshee merge;
131
132 check-since:
133         @if [ -z '$(SINCE)' ]; then echo 'Specify a SINCE (e.g. make package-patch SINCE=1.6.0)'; exit 1; fi;
134
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'
146
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
156
157 EXTRA_DIST = \
158         intltool-extract.in \
159         intltool-merge.in \
160         intltool-update.in \
161         autogen.sh \
162         AUTHORS \
163         HACKING
164
165 CLEANFILES = \
166         intltool-extract \
167         intltool-update \
168         intltool-merge
169
170 DISTCLEANFILES = \
171         *.bak \
172         *~ \
173         *.pidb
174
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