Aplied more fixage from Michael Meeks.
[platform/upstream/gstreamer.git] / Makefile.am
1 PACKAGE = @PACKAGE@
2 VERSION = @VERSION@
3
4 # if libglade is present, build the player and editor
5 if HAVE_LIBGLADE_GNOME
6 if HAVE_GNOME
7         SUBDIRS_LGG = gstplay editor
8 else
9 # Gnome 2.0 ...
10         SUBDIRS_LGG = gstplay
11 endif
12 else
13 SUBDIRS_LGG =
14 endif
15
16 if BUILD_DOCS
17 SUBDIRS_DOCS = docs
18 else
19 SUBDIRS_DOCS =
20 endif
21
22 if BUILD_TESTS
23 SUBDIRS_TESTS = test tests testsuite
24 else
25 SUBDIRS_TESTS =
26 endif
27
28 if BUILD_EXAMPLES
29 SUBDIRS_EXAMPLES = examples
30 else
31 SUBDIRS_EXAMPLES =
32 endif
33
34 SUBDIRS = include gst libs plugins tools $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) \
35 $(SUBDIRS_LGG) $(SUBDIRS_DOCS)
36
37 # These are all the possible subdirs
38 DIST_SUBDIRS = include gst libs plugins tools test tests testsuite examples gstplay editor docs debian
39
40
41 bin_SCRIPTS = gstreamer-config
42
43 m4datadir = $(datadir)/aclocal
44 m4data_DATA = gstreamer.m4
45
46 pkgconfigdir = $(libdir)/pkgconfig
47 pkgconfig_DATA = gstreamer.pc
48
49 man_MANS = gstreamer-config.1
50
51 EXTRA_DIST = gstreamer.spec.in gstreamer-config.in gstreamer.m4 \
52              gstreamer.pc.in gstreamer-uninstalled.pc.in \
53              configure.ac autogen.sh depcomp \
54              LICENSE REQUIREMENTS ABOUT-NLS $(man_MANS) \
55              idiottest.mak
56
57 dist-hook:
58         cp gstreamer.spec $(distdir)
59
60 rpm: dist
61         rpm -ta $(distdir).tar.gz
62
63 deb:
64         dpkg-buildpacakge -rfakeroot -us -uc
65
66 deb-maint:
67         debuild
68
69 include $(top_srcdir)/idiottest.mak
70