Move text_renderer/ out of misc/
[vlc.git] / modules / Makefile.am
1 NULL =
2 BASE_SUBDIRS = \
3         access \
4         audio_filter \
5         audio_mixer \
6         audio_output \
7         codec \
8         control \
9         demux \
10         gui \
11         meta_engine \
12         misc \
13         media_library \
14         packetizer \
15         services_discovery \
16         stream_filter \
17         text_renderer \
18         video_chroma \
19         video_filter \
20         video_output \
21         visualization
22 EXTRA_SUBDIRS = \
23         access_output \
24         mux \
25         stream_out \
26         mmx \
27         mmxext \
28         sse2 \
29         3dnow \
30         altivec \
31         arm_neon \
32         lua \
33         $(NULL)
34
35 SUBDIRS = $(BASE_SUBDIRS)
36 DIST_SUBDIRS = $(BASE_SUBDIRS) $(EXTRA_SUBDIRS) .
37 if ENABLE_SOUT
38 SUBDIRS += access_output mux stream_out
39 endif
40 if HAVE_MMX
41 SUBDIRS += mmx
42 endif
43 if HAVE_MMXEXT
44 SUBDIRS += mmxext
45 endif
46 if HAVE_SSE2
47 SUBDIRS += sse2
48 endif
49 if HAVE_3DNOW
50 SUBDIRS += 3dnow
51 endif
52 if HAVE_ALTIVEC
53 SUBDIRS += altivec
54 endif
55 if HAVE_NEON
56 SUBDIRS += arm_neon
57 endif
58 if BUILD_LUA
59 SUBDIRS += lua
60 endif
61 SUBDIRS += .
62
63 dist_noinst_SCRIPTS = genmf list.sh
64 dist_noinst_DATA = LIST
65 MOSTLYCLEANFILES = plugins.dat*
66
67 .PHONY: stamp-cache
68
69 stamp-cache:
70         $(AM_V_GEN)if test "$(build)" = "$(host)"; then \
71                 ../bin/vlc-cache-gen$(EXEEXT) . ; \
72         else \
73                 echo "Cross-compilation: cache generation skipped!" ; \
74         fi
75
76 install-exec-hook:
77         if test -z "$(DESTDIR)" -a "$(build)" = "$(host)"; then \
78                 LD_LIBRARY_PATH="$(libdir)" \
79                 "$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
80                          "$(vlclibdir)/plugins" ; \
81         else \
82                 echo "Staged installation: cache generation skipped!" ; \
83         fi