build fix
[platform/upstream/gstreamer.git] / Makefile.am
1 if USE_GCONFTOOL
2 GCONF_DIR=gconf
3 else
4 GCONF_DIR=
5 endif
6
7 if BUILD_EXTERNAL
8 EXT_DIR=ext
9 else
10 EXT_DIR=
11 endif
12
13 if BUILD_EXAMPLES
14 EXAMPLES_DIR=examples
15 else
16 EXAMPLES_DIR=
17 endif
18
19 gstreamer-libs-@GST_MAJORMINOR@.pc: gstreamer-libs.pc
20         cp gstreamer-libs.pc gstreamer-libs-@GST_MAJORMINOR@.pc
21 gstreamer-play-@GST_MAJORMINOR@.pc: gstreamer-play.pc
22         cp gstreamer-play.pc gstreamer-play-@GST_MAJORMINOR@.pc
23 gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
24         cp gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
25
26 pkgconfigdir = $(libdir)/pkgconfig
27 pkgconfig_DATA = \
28         gstreamer-libs-@GST_MAJORMINOR@.pc \
29         gstreamer-play-@GST_MAJORMINOR@.pc
30
31 aclocaldir = $(datadir)/aclocal
32 aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
33
34 SUBDIRS=gst-libs gst sys $(EXT_DIR) $(EXAMPLES_DIR) tools $(GCONF_DIR) testsuite
35
36 DIST_SUBDIRS=gst-libs gst sys ext examples tools gconf testsuite
37
38 EXTRA_DIST=gst-plugins.spec depcomp gst-element-check.m4 \
39            gstreamer-libs.pc.in gstreamer-libs-uninstalled.pc.in \
40            gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in \
41            AUTHORS COPYING README RELEASE \
42            ChangeLog autogen.sh common m4
43
44 dist-hook:
45         rm -rf `find $(distdir)/common -name CVS`
46         rm -rf `find $(distdir)/m4 -name CVS`