put docs last so it's the last to fail
[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 all-local: gst-element-check-@GST_MAJORMINOR@.m4
23
24 gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
25         cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
26
27 aclocaldir = $(datadir)/aclocal
28 aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
29
30 SUBDIRS = include gst libs tools \
31         $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) \
32         pkgconfig po \
33         $(SUBDIRS_DOCS)
34
35 # These are all the possible subdirs
36 DIST_SUBDIRS = include libs gst \
37         tools \
38         tests testsuite \
39         examples \
40         pkgconfig \
41         po \
42         docs
43
44 EXTRA_DIST = gstreamer.spec.in gst-element-check.m4 \
45              configure.ac autogen.sh depcomp \
46              REQUIREMENTS ABOUT-NLS RELEASE DOCBUILDING DEVEL \
47              idiottest.mak common
48
49 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
50
51 dist-hook:
52         cp gstreamer.spec $(distdir)
53         rm -rf `find $(distdir)/common -name CVS`
54
55 rpm: dist
56         rpm -ta $(distdir).tar.gz
57
58 include $(top_srcdir)/idiottest.mak
59