fix uninstalled
[platform/upstream/gstreamer.git] / Makefile.am
1 PACKAGE = @PACKAGE@
2 VERSION = @VERSION@
3
4 if BUILD_DOCS
5 SUBDIRS_DOCS = docs
6 else
7 SUBDIRS_DOCS =
8 endif
9
10 if BUILD_TESTS
11 SUBDIRS_TESTS = tests testsuite
12 else
13 SUBDIRS_TESTS =
14 endif
15
16 if BUILD_EXAMPLES
17 SUBDIRS_EXAMPLES = examples
18 else
19 SUBDIRS_EXAMPLES =
20 endif
21
22 SUBDIRS = include gst libs tools \
23         $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) $(SUBDIRS_DOCS)
24
25 # These are all the possible subdirs
26 DIST_SUBDIRS = include libs gst tools tests testsuite examples docs
27
28 all-local: gstreamer-@GST_MAJORMINOR@.pc gstreamer-@GST_MAJORMINOR@-uninstalled.pc
29
30 gstreamer-@GST_MAJORMINOR@.pc: gstreamer.pc
31         cp gstreamer.pc gstreamer-@GST_MAJORMINOR@.pc
32 gstreamer-@GST_MAJORMINOR@-uninstalled.pc: gstreamer.pc
33         cp gstreamer-uninstalled.pc gstreamer-@GST_MAJORMINOR@-uninstalled.pc
34
35 pkgconfigdir = $(libdir)/pkgconfig
36 pkgconfig_DATA = gstreamer-@GST_MAJORMINOR@.pc
37
38 EXTRA_DIST = gstreamer.spec.in \
39              gstreamer.pc.in \
40              gstreamer-uninstalled.pc.in \
41              configure.ac autogen.sh depcomp \
42              REQUIREMENTS ABOUT-NLS RELEASE DOCBUILDING DEVEL \
43              idiottest.mak common
44
45 dist-hook:
46         cp gstreamer.spec $(distdir)
47         rm -rf `find $(distdir)/common -name CVS`
48
49 rpm: dist
50         rpm -ta $(distdir).tar.gz
51
52 include $(top_srcdir)/idiottest.mak
53