Also generate uninstalled .pc files
[platform/upstream/gst-plugins-good.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 all-local: gstreamer-libs-@GST_MAJORMINOR@.pc gstreamer-play-@GST_MAJORMINOR@.pc gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc
20 gstreamer-libs-@GST_MAJORMINOR@.pc: gstreamer-libs.pc gstreamer-libs.pc.in
21         cp gstreamer-libs.pc gstreamer-libs-@GST_MAJORMINOR@.pc
22 gstreamer-play-@GST_MAJORMINOR@.pc: gstreamer-play.pc gstreamer-play.pc.in
23         cp gstreamer-play.pc gstreamer-play-@GST_MAJORMINOR@.pc
24 gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc: gstreamer-libs-uninstalled.pc gstreamer-libs-uninstalled.pc.in
25         cp gstreamer-libs-uninstalled.pc gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc
26 gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc: gstreamer-play-uninstalled.pc gstreamer-play-uninstalled.pc.in
27         cp gstreamer-play-uninstalled.pc gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc
28 gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
29         cp gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
30
31 pkgconfigdir = $(libdir)/pkgconfig
32 pkgconfig_DATA = \
33         gstreamer-libs-@GST_MAJORMINOR@.pc \
34         gstreamer-play-@GST_MAJORMINOR@.pc
35
36 aclocaldir = $(datadir)/aclocal
37 aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
38
39 SUBDIRS=gst-libs gst sys $(EXT_DIR) $(EXAMPLES_DIR) tools $(GCONF_DIR) testsuite
40
41 DIST_SUBDIRS=gst-libs gst sys ext examples tools gconf testsuite
42
43 EXTRA_DIST=gst-plugins.spec depcomp gst-element-check.m4 \
44            gstreamer-libs.pc.in gstreamer-libs-uninstalled.pc.in \
45            gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in \
46            AUTHORS COPYING README RELEASE REQUIREMENTS \
47            ChangeLog autogen.sh common m4
48
49 dist-hook:
50         rm -rf `find $(distdir)/common -name CVS`
51         rm -rf `find $(distdir)/m4 -name CVS`