Erik Walthinsen | 9ca8248 | 2001-01-14 21:55:41 +0000 | [diff] [blame] | 1 | PACKAGE = @PACKAGE@ |
| 2 | VERSION = @VERSION@ |
| 3 | |
Erik Walthinsen | ebb1eae | 2001-02-07 22:23:54 +0000 | [diff] [blame] | 4 | if BUILD_DOCS |
| 5 | SUBDIRS_DOCS = docs |
| 6 | else |
| 7 | SUBDIRS_DOCS = |
| 8 | endif |
| 9 | |
Andrew Mitchell | 3f4be54 | 2001-06-02 13:38:57 +0000 | [diff] [blame] | 10 | if BUILD_TESTS |
Andy Wingo | 83bd7c9 | 2002-01-04 21:57:08 +0000 | [diff] [blame] | 11 | SUBDIRS_TESTS = tests testsuite |
Andrew Mitchell | 3f4be54 | 2001-06-02 13:38:57 +0000 | [diff] [blame] | 12 | else |
| 13 | SUBDIRS_TESTS = |
| 14 | endif |
| 15 | |
| 16 | if BUILD_EXAMPLES |
| 17 | SUBDIRS_EXAMPLES = examples |
| 18 | else |
| 19 | SUBDIRS_EXAMPLES = |
| 20 | endif |
| 21 | |
Ronald S. Bultje | d2499c3 | 2003-04-07 21:28:57 +0000 | [diff] [blame] | 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 | |
David Schleef | 9bdd082 | 2003-12-02 04:53:52 +0000 | [diff] [blame] | 27 | ACLOCAL_AMFLAGS = -I common/m4 |
| 28 | |
Ronald S. Bultje | d2499c3 | 2003-04-07 21:28:57 +0000 | [diff] [blame] | 29 | aclocaldir = $(datadir)/aclocal |
| 30 | aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4 |
| 31 | |
Thomas Vander Stichele | 3758abc | 2002-02-12 22:28:25 +0000 | [diff] [blame] | 32 | SUBDIRS = include gst libs tools \ |
Thomas Vander Stichele | 0c5153f | 2003-11-15 11:58:49 +0000 | [diff] [blame] | 33 | $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) \ |
| 34 | pkgconfig po \ |
| 35 | $(SUBDIRS_DOCS) |
Richard Boulton | 5637570 | 2001-01-01 13:41:27 +0000 | [diff] [blame] | 36 | |
Richard Boulton | 9ae673e | 2000-08-18 23:31:30 +0000 | [diff] [blame] | 37 | # These are all the possible subdirs |
Ronald S. Bultje | d2499c3 | 2003-04-07 21:28:57 +0000 | [diff] [blame] | 38 | DIST_SUBDIRS = include libs gst \ |
| 39 | tools \ |
| 40 | tests testsuite \ |
| 41 | examples \ |
David Schleef | d4ee10b | 2003-10-09 01:13:21 +0000 | [diff] [blame] | 42 | pkgconfig \ |
Thomas Vander Stichele | 0c5153f | 2003-11-15 11:58:49 +0000 | [diff] [blame] | 43 | po \ |
| 44 | docs |
Erik Walthinsen | 2da16ed | 2001-01-01 08:37:41 +0000 | [diff] [blame] | 45 | |
Ronald S. Bultje | d2499c3 | 2003-04-07 21:28:57 +0000 | [diff] [blame] | 46 | EXTRA_DIST = gstreamer.spec.in gst-element-check.m4 \ |
Andy Wingo | a534492 | 2001-12-09 00:11:46 +0000 | [diff] [blame] | 47 | configure.ac autogen.sh depcomp \ |
Thomas Vander Stichele | a4e5d02 | 2004-02-06 13:07:20 +0000 | [diff] [blame] | 48 | REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL \ |
David Schleef | d4ee10b | 2003-10-09 01:13:21 +0000 | [diff] [blame] | 49 | idiottest.mak common |
| 50 | |
| 51 | CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4 |
Erik Walthinsen | 0032727 | 2000-01-31 09:43:08 +0000 | [diff] [blame] | 52 | |
David Schleef | 67062b7 | 2004-01-09 01:42:11 +0000 | [diff] [blame] | 53 | |
Thomas Vander Stichele | a4e5d02 | 2004-02-06 13:07:20 +0000 | [diff] [blame] | 54 | # to do a release, run "make release" |
| 55 | # this will generate all archives and md5sums |
| 56 | |
| 57 | # make bz2 as well |
| 58 | AUTOMAKE_OPTIONS = dist-bzip2 |
| 59 | |
| 60 | release: 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 Walthinsen | 0032727 | 2000-01-31 09:43:08 +0000 | [diff] [blame] | 68 | dist-hook: |
| 69 | cp gstreamer.spec $(distdir) |
Andy Wingo | 12c595c | 2002-05-09 16:53:07 +0000 | [diff] [blame] | 70 | rm -rf `find $(distdir)/common -name CVS` |
Erik Walthinsen | a45e612 | 2000-01-31 06:49:07 +0000 | [diff] [blame] | 71 | |
| 72 | rpm: dist |
| 73 | rpm -ta $(distdir).tar.gz |
Richard Boulton | 769318c | 2001-05-29 16:38:29 +0000 | [diff] [blame] | 74 | |
Richard Boulton | c3086c4 | 2001-05-31 18:35:11 +0000 | [diff] [blame] | 75 | include $(top_srcdir)/idiottest.mak |
Richard Boulton | 378c15b | 2001-05-30 14:39:06 +0000 | [diff] [blame] | 76 | |
David Schleef | 67062b7 | 2004-01-09 01:42:11 +0000 | [diff] [blame] | 77 | |
| 78 | if GST_GCOV_ENABLED |
| 79 | clean-gcov: |
| 80 | find -name "*.da" -o -name "*.gcov" | xargs rm || true |
| 81 | |
| 82 | clean-bbg: |
| 83 | find -name "*.bbg" -o -name "*.bb" | xargs rm || true |
| 84 | |
| 85 | GCOV_DIRS=gst libs |
| 86 | |
| 87 | ## .PHONY so it always rebuilds it |
| 88 | .PHONY: coverage-report.txt |
| 89 | coverage-report.txt: |
Thomas Vander Stichele | ac6e27f | 2004-02-12 19:10:23 +0000 | [diff] [blame^] | 90 | 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 Schleef | 67062b7 | 2004-01-09 01:42:11 +0000 | [diff] [blame] | 104 | $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt |
| 105 | |
| 106 | check-coverage: clean-gcov all check coverage-report.txt |
| 107 | cat coverage-report.txt |
| 108 | |
| 109 | else |
| 110 | coverage-report.txt: |
| 111 | echo "Need to reconfigure with --enable-gcov" |
| 112 | |
| 113 | check-coverage: |
| 114 | echo "Need to reconfigure with --enable-gcov" |
| 115 | |
| 116 | endif |