Merge pull request #1131 from davilla/fix-ae-getcachetime
[vuplus_xbmc] / Makefile.in
1 AUTOGENERATED_MAKEFILES=@OUTPUT_FILES@
2
3 EC_DIRS= \
4         tools/EventClients
5
6 XBMCTEX_DIRS= \
7         tools/TexturePacker
8
9 DVDPCODECS_DIRS= \
10         lib \
11         lib/libdvd
12
13 DVDPLAYER_ARCHIVES=xbmc/cores/dvdplayer/DVDPlayer.a \
14                    xbmc/cores/dvdplayer/DVDCodecs/DVDCodecs.a \
15                    xbmc/cores/dvdplayer/DVDCodecs/Audio/Audio.a \
16                    xbmc/cores/dvdplayer/DVDCodecs/Overlay/Overlay.a \
17                    xbmc/cores/dvdplayer/DVDCodecs/Video/Video.a \
18                    xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxers.a \
19                    xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreams.a \
20                    xbmc/cores/dvdplayer/DVDSubtitles/DVDSubtitles.a
21
22 DIRECTORY_ARCHIVES=$(DVDPLAYER_ARCHIVES) \
23                    lib/SlingboxLib/SlingboxLib.a \
24                    lib/libRTV/librtv.a \
25                    lib/libUPnP/libupnp.a \
26                    lib/libXDAAP/libxdaap.a \
27                    lib/libhts/libhts.a \
28                    lib/libsquish/libsquish.a \
29                    lib/xbmc-dll-symbols/dll-symbols.a \
30                    xbmc/addons/addons.a \
31                    xbmc/cdrip/cdrip.a \
32                    xbmc/cores/AudioEngine/audioengine.a \
33                    xbmc/cores/DllLoader/dllloader.a \
34                    xbmc/cores/DllLoader/exports/exports.a \
35                    xbmc/cores/DllLoader/exports/util/exports_utils.a \
36                    xbmc/cores/ExternalPlayer/ExternalPlayer.a \
37                    xbmc/cores/VideoRenderers/VideoRenderer.a \
38                    xbmc/cores/VideoRenderers/VideoShaders/VideoShaders.a \
39                    xbmc/cores/cores.a \
40                    xbmc/cores/paplayer/paplayer.a \
41                    xbmc/cores/playercorefactory/playercorefactory.a \
42                    xbmc/dbwrappers/dbwrappers.a \
43                    xbmc/dialogs/dialogs.a \
44                    xbmc/filesystem/MusicDatabaseDirectory/musicdatabasedirectory.a \
45                    xbmc/filesystem/VideoDatabaseDirectory/videodatabasedirectory.a \
46                    xbmc/filesystem/filesystem.a \
47                    xbmc/guilib/guilib.a \
48                    xbmc/input/input.a \
49                    xbmc/interfaces/http-api/http-api.a \
50                    xbmc/interfaces/info/info.a \
51                    xbmc/interfaces/interfaces.a \
52                    xbmc/interfaces/json-rpc/json-rpc.a \
53                    xbmc/interfaces/python/python.a \
54                    xbmc/interfaces/python/xbmcmodule/xbmcmodule.a \
55                    xbmc/linux/linux.a \
56                    xbmc/music/dialogs/musicdialogs.a \
57                    xbmc/music/infoscanner/musicscanner.a \
58                    xbmc/music/karaoke/karaoke.a \
59                    xbmc/music/music.a \
60                    xbmc/music/tags/musictags.a \
61                    xbmc/music/windows/musicwindows.a \
62                    xbmc/network/libscrobbler/scrobbler.a \
63                    xbmc/network/websocket/websocket.a \
64                    xbmc/network/network.a \
65                    xbmc/peripherals/bus/peripheral-bus.a \
66                    xbmc/peripherals/devices/peripheral-devices.a \
67                    xbmc/peripherals/dialogs/peripheral-dialogs.a \
68                    xbmc/peripherals/peripherals.a \
69                    xbmc/pictures/pictures.a \
70                    xbmc/playlists/playlists.a \
71                    xbmc/powermanagement/powermanagement.a \
72                    xbmc/programs/programs.a \
73                    xbmc/rendering/rendering.a \
74                    xbmc/settings/settings.a \
75                    xbmc/storage/storage.a \
76                    xbmc/utils/utils.a \
77                    xbmc/video/dialogs/videodialogs.a \
78                    xbmc/video/video.a \
79                    xbmc/video/windows/videowindows.a \
80                    xbmc/windowing/windowing.a \
81                    xbmc/windows/windows.a \
82                    xbmc/xbmc.a \
83
84
85 NWAOBJSXBMC=    xbmc/commons/commons.a \
86                 xbmc/threads/threads.a \
87
88
89 ifeq (@USE_WEB_SERVER@,1)
90 DIRECTORY_ARCHIVES += xbmc/network/httprequesthandler/httprequesthandlers.a
91 endif
92
93 ifeq (@USE_OPENGL@,1)
94 DIRECTORY_ARCHIVES += xbmc/rendering/gl/rendering_gl.a
95 endif
96
97 ifeq (@USE_OPENGLES@,1)
98 DIRECTORY_ARCHIVES += xbmc/rendering/gles/rendering_gles.a
99 DIRECTORY_ARCHIVES += xbmc/windowing/egl/windowing_egl.a
100 endif
101
102 ifeq ($(findstring osx,@ARCH@),osx)
103 DIRECTORY_ARCHIVES += xbmc/osx/osx.a
104 DIRECTORY_ARCHIVES += xbmc/network/osx/network.a
105 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
106 DIRECTORY_ARCHIVES += xbmc/powermanagement/osx/powermanagement.a
107 DIRECTORY_ARCHIVES += xbmc/storage/osx/storage.a
108 DIRECTORY_ARCHIVES += xbmc/windowing/osx/windowing_osx.a
109 else
110 DIRECTORY_ARCHIVES += xbmc/input/linux/input_linux.a
111 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
112 DIRECTORY_ARCHIVES += xbmc/powermanagement/linux/powermanagement_linux.a
113 DIRECTORY_ARCHIVES += xbmc/storage/linux/storage_linux.a
114 DIRECTORY_ARCHIVES += xbmc/windowing/X11/windowing_X11.a
115 endif
116
117 ifeq ($(findstring freebsd,@ARCH@),freebsd)
118 DIRECTORY_ARCHIVES += xbmc/freebsd/freebsd.a
119 endif
120
121 ifeq (@HAVE_XBMC_NONFREE@,1)
122 DIRECTORY_ARCHIVES += lib/UnrarXLib/UnrarXLib.a
123 endif
124
125 BIN_DIRS = $(dir $(DIRECTORY_ARCHIVES)) $(dir $(NWAOBJSXBMC))
126
127 PAPCODECS_DIRS= \
128         lib/xbadpcm \
129         lib/nosefart \
130         lib/timidity \
131         lib/libsidplay2 \
132         lib/stsound/StSoundLibrary \
133         lib/snesapu/SNES/SNESAPU \
134         lib/vgmstream
135
136 ifeq (@USE_ASAP_CODEC@,1)
137 PAPCODECS_DIRS+= \
138         lib/asap
139 endif
140
141 LIB_DIRS=\
142         lib/cximage-6.0 \
143         lib/libexif \
144         lib/cmyth \
145         lib/libhdhomerun \
146         lib/libid3tag \
147         lib/libapetag \
148         lib/cpluff \
149         lib/xbmc-dll-symbols
150
151 SS_DIRS=
152 ifneq (@DISABLE_RSXS@,1)
153   SS_DIRS+= xbmc/screensavers/rsxs-0.9/xbmc
154 endif
155
156 VIS_DIRS=xbmc/visualizations/OpenGLSpectrum \
157          xbmc/visualizations/WaveForm
158
159 ifneq (@DISABLE_PROJECTM@,1)
160   VIS_DIRS+= xbmc/visualizations/XBMCProjectM
161 endif
162
163 ifeq (($(findstring osx,@ARCH@), osx),(@USE_OPENGL@,1))
164   VIS_DIRS+=xbmc/visualizations/iTunes
165 endif
166
167 ifneq (@DISABLE_GOOM@,1)
168   VIS_DIRS+=xbmc/visualizations/Goom
169 endif
170
171 CONFLUENCE_MEDIA=addons/skin.confluence/media
172 SKIN_DIRS=$(CONFLUENCE_MEDIA)
173
174 ifeq (@USE_SKIN_TOUCHED@,1)
175 TOUCHED_MEDIA=addons/skin.touched/media
176 SKIN_DIRS+=$(TOUCHED_MEDIA)
177 endif
178
179 DIRS= $(BIN_DIRS) $(EC_DIRS) $(XBMCTEX_DIRS) $(DVDPCODECS_DIRS) $(PAPCODECS_DIRS) \
180         $(LIB_DIRS) $(SS_DIRS) $(VIS_DIRS) $(SKIN_DIRS)
181
182 LIBS=@LIBS@
183 CFLAGS=@CFLAGS@
184 CXXFLAGS=@CXXFLAGS@
185 LDFLAGS=@LDFLAGS@
186 INCLUDES=$(sort @INCLUDES@)
187
188 CLEAN_FILES=xbmc.bin xbmc-xrandr libxbmc.so
189
190 DISTCLEAN_FILES=config.h config.log config.status tools/Linux/xbmc.sh \
191         tools/Linux/xbmc-standalone.sh autom4te.cache config.h.in~ \
192         system/libcpluff-@ARCH@.so
193
194 ifeq (@USE_LIBXBMC@,1)
195 FINAL_TARGETS+=libxbmc.so
196 else
197 FINAL_TARGETS=xbmc.bin skins xbmc-xrandr
198 endif
199 FINAL_TARGETS+=Makefile externals
200
201 CHECK_DIRS = xbmc/utils/test \
202              xbmc/threads/test
203
204 all : $(FINAL_TARGETS)
205         @echo '-----------------------'
206         @echo 'XBMC built successfully'
207         @echo '-----------------------'
208
209 include Makefile.include
210
211 .PHONY : dllloader exports visualizations screensavers eventclients papcodecs \
212         dvdpcodecs imagelib codecs externals force skins
213
214 # hack targets to keep build system up to date
215 Makefile : config.status $(addsuffix .in, $(AUTOGENERATED_MAKEFILES))
216         @echo "Regenerating Makefiles..."
217         @./config.status &> /dev/null
218         @echo "done"
219
220 config.status: configure
221         @echo "Build system configuration is stale."
222         @echo "Please (re)run configure."
223         @test -n "$$XBMC_IGNORE_STALE"
224
225 configure: configure.in
226         @echo 'configure is outdated, regenerating...'
227         @./bootstrap
228
229 # skin textures
230 ifeq (@USE_TEXTUREPACKER@,1)
231 skins: tools/TexturePacker/TexturePacker force
232          $(MAKE) -C $(CONFLUENCE_MEDIA)
233 ifeq (@USE_SKIN_TOUCHED@,1)
234          $(MAKE) -C $(TOUCHED_MEDIA)
235 endif
236 else
237 skins:
238 endif
239
240 # Setup some dependencies for subdir makes
241 xbmc/cores/paplayer/paplayer.a: papcodecs
242 $(DVDPLAYER_ARCHIVES)         : dvdpcodecs
243
244 $(NWAOBJSXBMC): force
245         @$(MAKE) $(if $(V),,-s) -C $(@D)
246
247 $(DIRECTORY_ARCHIVES): force
248         @$(MAKE) $(if $(V),,-s) -C $(@D)
249
250 lib/libapetag/.libs/libapetag.a: force
251         $(MAKE) -C lib/libapetag
252 lib/cpluff/libcpluff/.libs/libcpluff.a: force
253         $(MAKE) -C lib/cpluff/libcpluff
254 system/libcpluff-@ARCH@.so: lib/cpluff/libcpluff/.libs/libcpluff.a
255 ifeq ($(findstring osx,@ARCH@), osx)
256   ifeq (@ARCH@, arm-osx)
257         $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -read_only_relocs suppress -o $@ $<
258   else
259         $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -lexpat $(BUNDLE1_O) -o $@ $<
260   endif
261 else
262         cp lib/cpluff/libcpluff/.libs/libcpluff.so $@
263 endif
264
265 exports: xbmc/cores/DllLoader/exports/exports.a xbmc/cores/DllLoader/exports/util/exports_utils.a
266         $(MAKE) -C xbmc/cores/DllLoader/exports wrapper.def
267 dllloader: exports xbmc/cores/DllLoader/dllloader.a
268
269 $(VIS_DIRS) $(SS_DIRS): force exports
270         $(MAKE) -C $@
271
272 visualizations: $(VIS_DIRS)
273
274 screensavers: $(SS_DIRS)
275
276 libpython: dllloader
277         $(MAKE) -C xbmc/interfaces/python
278         $(MAKE) -C xbmc/interfaces/python/xbmcmodule
279 dvdpcodecs: dllloader
280         $(MAKE) -C lib 
281         $(MAKE) -C lib/libdvd
282 eventclients:
283 ifeq ($(findstring osx,@ARCH@), osx)
284 ifneq ($(findstring arm,@ARCH@), arm)
285         $(MAKE) -C tools/EventClients/Clients/OSXRemote
286 endif
287 else
288         $(MAKE) -C tools/EventClients
289 endif
290 libexif: dllloader
291         $(MAKE) -C lib/libexif
292 cmyth: dllloader
293         $(MAKE) -C lib/cmyth
294 libhdhomerun: dllloader
295         $(MAKE) -C lib/libhdhomerun
296 libid3tag: dllloader
297         $(MAKE) -C lib/libid3tag
298 papcodecs: dllloader dvdpcodecs
299         test -d system/players/paplayer || mkdir system/players/paplayer
300         $(MAKE) -C lib/xbadpcm
301         $(MAKE) -C lib/vgmstream
302         $(MAKE) -C lib/timidity
303         $(MAKE) -C lib/nosefart 
304 ifneq ($(findstring arm-osx,@ARCH@), arm-osx)
305         $(MAKE) -C lib/libsidplay2 
306 endif
307 ifeq (@USE_ASAP_CODEC@,1)
308   ifneq ($(findstring osx,@ARCH@), osx)
309         $(MAKE) -C lib/asap asap-xbmc
310   endif
311 endif
312         $(MAKE) -C lib/stsound/StSoundLibrary   
313 ifeq ($(or $(findstring powerpc,@ARCH@),$(findstring x86_64-linux,@ARCH@),$(findstring arm, @ARCH@),$(findstring freebsd,@ARCH@)),)
314         $(MAKE) -C lib/snesapu/SNES/SNESAPU
315 endif
316 imagelib: dllloader
317         $(MAKE) -C lib/cximage-6.0
318
319 codecs: papcodecs dvdpcodecs
320 libs: cmyth libhdhomerun libid3tag imagelib libexif system/libcpluff-@ARCH@.so
321 externals: codecs libs visualizations screensavers
322
323 xcode_depends: \
324         codecs libs visualizations screensavers eventclients skins \
325         lib/libsquish/libsquish.a \
326         lib/libapetag/.libs/libapetag.a \
327         lib/libRTV/librtv.a \
328         lib/libXDAAP/libxdaap.a \
329         lib/SlingboxLib/SlingboxLib.a
330
331 OBJSXBMC =$(DIRECTORY_ARCHIVES)
332 OBJSXBMC+=lib/libapetag/.libs/libapetag.a
333
334 DYNOBJSXBMC= \
335         xbmc/linux/linux.a \
336         xbmc/network/network.a \
337         xbmc/video/windows/videowindows.a \
338         xbmc/utils/utils.a \
339         xbmc/cores/DllLoader/exports/util/exports_utils.a \
340         xbmc/cores/DllLoader/exports/exports.a \
341         xbmc/settings/settings.a \
342         xbmc/video/video.a \
343         xbmc/guilib/guilib.a # must be dynamic to avoid linker errors
344
345 ifeq ($(findstring freebsd,@ARCH@),freebsd)
346 DYNOBJSXBMC+= xbmc/freebsd/freebsd.a
347 endif
348
349 OBJSXBMC:=$(filter-out $(DYNOBJSXBMC), $(OBJSXBMC))
350
351 LIBS += @PYTHON_LDFLAGS@
352
353 libxbmc.so: $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC)
354 ifeq ($(findstring osx,@ARCH@), osx)
355         $(SILENT_LD) $(CXX) $(LDFLAGS) -bundle -o $@ -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(LIBS)
356 else
357         $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ -Wl,--whole-archive $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--no-whole-archive $(NWAOBJSXBMC) $(LIBS)
358 endif
359
360 xbmc.bin: $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC)
361
362 ifeq ($(findstring osx,@ARCH@), osx)
363         $(SILENT_LD) $(CXX) $(LDFLAGS) -o xbmc.bin -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(LIBS) -rdynamic
364 else
365         $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -o xbmc.bin -Wl,--whole-archive $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--no-whole-archive $(NWAOBJSXBMC) $(LIBS) -rdynamic
366 endif
367
368 xbmc-xrandr: xbmc-xrandr.c
369 ifneq (1,@USE_XRANDR@)
370         # xbmc-xrandr.c gets picked up by the default make rules
371         @echo "excluding xbmc-xrandr"
372 else
373         $(SILENT_LD) $(CC) $(CFLAGS) $(LDFLAGS) -o xbmc-xrandr xbmc-xrandr.c -lXrandr -lX11 -lm
374 endif
375
376 tools/XBMCTex/XBMCTex:
377 ifeq ($(findstring osx,@ARCH@), osx)
378         # hack this for now
379         $(MAKE) -C tools/XBMCTex -f Makefile.osx
380 else
381         $(MAKE) -C tools/XBMCTex/
382 endif
383
384 tools/TexturePacker/TexturePacker: xbmc/guilib/guilib.a lib/libsquish/libsquish.a
385         $(MAKE) -C tools/TexturePacker/
386
387
388 install-bin: xbmc.bin # developement convenience target
389         sudo install -d $(DESTDIR)$(libdir)
390         sudo install xbmc.bin $(DESTDIR)$(libdir)/xbmc
391
392 ifeq ($(findstring osx,@ARCH@), osx)
393         # TODO: add osx install
394 else
395 install: install-binaries install-arch install-datas
396
397 install-binaries: install-scripts
398         @echo "Copying XBMC binary to $(DESTDIR)$(libdir)/xbmc/xbmc.bin"
399         @install -d $(DESTDIR)$(libdir)/xbmc
400         @install xbmc.bin $(DESTDIR)$(libdir)/xbmc/xbmc.bin
401 ifeq (1,@USE_XRANDR@)
402         @install xbmc-xrandr $(DESTDIR)$(libdir)/xbmc/xbmc-xrandr
403 endif
404 ifeq (@USE_LIBXBMC@,1)
405         @install libxbmc.so $(DESTDIR)$(libdir)/xbmc/libxbmc.so
406 else
407         @echo "You can run XBMC with the command 'xbmc'"
408 endif
409 endif
410
411 install-arch:
412         @# Arch dependent files
413 ifeq ($(findstring freebsd,@ARCH@), freebsd)
414         @find -E system addons -type f -not -iregex ".*svn.*" \
415                 -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
416                 -exec sh -c "install -d \"$(DESTDIR)$(libdir)/xbmc/\`dirname '{}'\`\"" \; \
417                 -and \
418                 -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \
419                 -exec printf " -- %-75.75s\r" "{}" \;
420 else
421         @find system addons -regextype posix-extended -type f -not -iregex ".*svn.*" -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" -exec install -D "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
422 endif
423
424 install-scripts:
425         @install -d $(DESTDIR)$(bindir)
426         @install tools/Linux/xbmc.sh $(DESTDIR)$(bindir)/xbmc
427         @install tools/Linux/xbmc-standalone.sh $(DESTDIR)$(bindir)/xbmc-standalone
428         @install -d $(DESTDIR)$(datarootdir)/xbmc
429         @install -m 0644 tools/Linux/FEH.py $(DESTDIR)$(datarootdir)/xbmc/FEH.py
430         @install -d $(DESTDIR)$(datarootdir)/xsessions
431         @install -m 0644 tools/Linux/xbmc-xsession.desktop $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
432
433 install-datas: install-scripts
434         @echo "Copying support and legal files..."
435         @install -d $(DESTDIR)$(docdir)
436         @for FILE in `ls LICENSE.GPL *.txt`; do \
437                 install -m 0644 "$$FILE" "$(DESTDIR)$(docdir)/$$FILE"; done
438         @install -m 0644 "docs/README.linux" "$(DESTDIR)$(docdir)/README.linux"
439         @echo "Done!"
440         @echo "Copying system files to $(DESTDIR)$(datarootdir)/xbmc"
441         @install -d $(DESTDIR)$(datarootdir)/xbmc
442         @# Arch independent files
443 ifeq ($(findstring bsd,@ARCH@), bsd)
444         @find -E addons language media sounds userdata system -type f \
445                 -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" \
446                 -exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/xbmc/\`dirname '{}'\`\"" \; \
447                 -and \
448                 -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \
449                 -exec printf " -- %-75.75s\r" "{}" \;
450 else
451         @find addons language media sounds userdata system -regextype posix-extended -type f -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" -exec install -D -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
452 endif
453         @# Icons and links
454         @install -d $(DESTDIR)$(datarootdir)/applications
455         @install tools/Linux/xbmc.desktop $(DESTDIR)$(datarootdir)/applications/xbmc.desktop
456         @install -d $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps
457         @install -m 0644 tools/Linux/xbmc-48x48.png $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/xbmc.png
458         @install -d $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps
459         @install -m 0644 media/icon.png $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps/xbmc.png
460         @test -z "$(DESTDIR)" && gtk-update-icon-cache -f -q -t $(datadir)/icons/hicolor || :
461
462 uninstall:
463         @echo "Removing XBMC..."
464         @rm -rf $(DESTDIR)$(libdir)/xbmc
465         @rm -rf $(DESTDIR)$(datarootdir)/xbmc $(DESTDIR)$(bindir)/xbmc
466         @rm -rf $(DESTDIR)$(bindir)/xbmc-standalone
467         @rm -rf $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
468         @echo "Done!"
469
470 clean-xbmc.bin:
471         rm -f xbmc.bin
472         for d in $(BIN_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
473 clean-eventclients:
474         for d in $(EC_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
475 clean-xbmctex:
476         for d in $(XBMCTEX_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
477 clean-dvdpcodecs: 
478         for d in $(DVDPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
479 clean-papcodecs:
480         for d in $(PAPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
481 clean-libs: 
482         for d in $(LIB_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
483 clean-screensavers: 
484         for d in $(SS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
485 clean-visualisations:
486         for d in $(VIS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
487
488 clean-codecs: clean-dvdpcodecs clean-papcodecs
489
490 clean-externals: clean-codecs clean-eventclients clean-xbmctex clean-libs \
491         clean-screensavers clean-visualisations
492
493 check:
494         for d in $(CHECK_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d $@; fi; done