blob: 2dd0347d49ef0454e5ac207c6c6a61c07909ac41 [file] [log] [blame]
Erik Walthinsen9ca82482001-01-14 21:55:41 +00001PACKAGE = @PACKAGE@
2VERSION = @VERSION@
3
Erik Walthinsenebb1eae2001-02-07 22:23:54 +00004if BUILD_DOCS
5SUBDIRS_DOCS = docs
6else
7SUBDIRS_DOCS =
8endif
9
Andrew Mitchell3f4be542001-06-02 13:38:57 +000010if BUILD_TESTS
Andy Wingo83bd7c92002-01-04 21:57:08 +000011SUBDIRS_TESTS = tests testsuite
Andrew Mitchell3f4be542001-06-02 13:38:57 +000012else
13SUBDIRS_TESTS =
14endif
15
16if BUILD_EXAMPLES
17SUBDIRS_EXAMPLES = examples
18else
19SUBDIRS_EXAMPLES =
20endif
21
Ronald S. Bultjed2499c32003-04-07 21:28:57 +000022all-local: gst-element-check-@GST_MAJORMINOR@.m4
23
24gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
25 cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
26
David Schleef9bdd0822003-12-02 04:53:52 +000027ACLOCAL_AMFLAGS = -I common/m4
28
Ronald S. Bultjed2499c32003-04-07 21:28:57 +000029aclocaldir = $(datadir)/aclocal
30aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
31
Thomas Vander Stichele3758abc2002-02-12 22:28:25 +000032SUBDIRS = include gst libs tools \
Thomas Vander Stichele0c5153f2003-11-15 11:58:49 +000033 $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) \
34 pkgconfig po \
35 $(SUBDIRS_DOCS)
Richard Boulton56375702001-01-01 13:41:27 +000036
Richard Boulton9ae673e2000-08-18 23:31:30 +000037# These are all the possible subdirs
Ronald S. Bultjed2499c32003-04-07 21:28:57 +000038DIST_SUBDIRS = include libs gst \
39 tools \
40 tests testsuite \
41 examples \
David Schleefd4ee10b2003-10-09 01:13:21 +000042 pkgconfig \
Thomas Vander Stichele0c5153f2003-11-15 11:58:49 +000043 po \
44 docs
Erik Walthinsen2da16ed2001-01-01 08:37:41 +000045
Ronald S. Bultjed2499c32003-04-07 21:28:57 +000046EXTRA_DIST = gstreamer.spec.in gst-element-check.m4 \
Andy Wingoa5344922001-12-09 00:11:46 +000047 configure.ac autogen.sh depcomp \
Thomas Vander Stichelea4e5d022004-02-06 13:07:20 +000048 REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL \
David Schleefd4ee10b2003-10-09 01:13:21 +000049 idiottest.mak common
50
51CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
Erik Walthinsen00327272000-01-31 09:43:08 +000052
David Schleef67062b72004-01-09 01:42:11 +000053
Thomas Vander Stichelea4e5d022004-02-06 13:07:20 +000054# to do a release, run "make release"
55# this will generate all archives and md5sums
56
57# make bz2 as well
58AUTOMAKE_OPTIONS = dist-bzip2
59
60release: dist
61 make @PACKAGE@-@VERSION@.tar.gz.md5
62 make @PACKAGE@-@VERSION@.tar.bz2.md5
63
64# generate md5 sum files
65%.md5: %
66 md5sum $< > $@
67
Erik Walthinsen00327272000-01-31 09:43:08 +000068dist-hook:
69 cp gstreamer.spec $(distdir)
Andy Wingo12c595c2002-05-09 16:53:07 +000070 rm -rf `find $(distdir)/common -name CVS`
Erik Walthinsena45e6122000-01-31 06:49:07 +000071
72rpm: dist
73 rpm -ta $(distdir).tar.gz
Richard Boulton769318c2001-05-29 16:38:29 +000074
Richard Boultonc3086c42001-05-31 18:35:11 +000075include $(top_srcdir)/idiottest.mak
Richard Boulton378c15b2001-05-30 14:39:06 +000076
David Schleef67062b72004-01-09 01:42:11 +000077
78if GST_GCOV_ENABLED
79clean-gcov:
80 find -name "*.da" -o -name "*.gcov" | xargs rm || true
81
82clean-bbg:
83 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
84
85GCOV_DIRS=gst libs
86
87## .PHONY so it always rebuilds it
88.PHONY: coverage-report.txt
89coverage-report.txt:
Thomas Vander Sticheleac6e27f2004-02-12 19:10:23 +000090 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
91 C_FILES= ; \
92 for F in $$BBG_FILES ; do \
93 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
94 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
95 B=`basename $$F .bbg` ; \
96 D=`dirname $$F` ; \
97 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
98 DA_libs=`echo $$D/.libs/$$B/.da` ; \
99 if test -e $$DA || test -e $$DA_libs; then \
100 C_FILES="$$C_FILES $$C" ; \
101 fi ; \
102 done ; \
103 echo $$C_FILES ; \
David Schleef67062b72004-01-09 01:42:11 +0000104 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
105
106check-coverage: clean-gcov all check coverage-report.txt
107 cat coverage-report.txt
108
109else
110coverage-report.txt:
111 echo "Need to reconfigure with --enable-gcov"
112
113check-coverage:
114 echo "Need to reconfigure with --enable-gcov"
115
116endif