Thomas Vander Stichele | 10aaff0 | 2005-09-03 14:20:10 +0000 | [diff] [blame] | 1 | DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-docbook |
Erik Walthinsen | 9ca8248 | 2001-01-14 21:55:41 +0000 | [diff] [blame] | 2 | |
Ronald S. Bultje | d2499c3 | 2003-04-07 21:28:57 +0000 | [diff] [blame] | 3 | all-local: gst-element-check-@GST_MAJORMINOR@.m4 |
| 4 | |
| 5 | gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4 |
| 6 | cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4 |
| 7 | |
David Schleef | 9bdd082 | 2003-12-02 04:53:52 +0000 | [diff] [blame] | 8 | ACLOCAL_AMFLAGS = -I common/m4 |
| 9 | |
Ronald S. Bultje | d2499c3 | 2003-04-07 21:28:57 +0000 | [diff] [blame] | 10 | aclocaldir = $(datadir)/aclocal |
| 11 | aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4 |
| 12 | |
Thomas Vander Stichele | 756dc09 | 2004-08-13 14:03:05 +0000 | [diff] [blame] | 13 | SUBDIRS = \ |
Thomas Vander Stichele | c936487 | 2005-11-30 16:39:04 +0000 | [diff] [blame] | 14 | gst libs plugins tools tests \ |
Thomas Vander Stichele | 50a2f3f | 2005-09-03 13:49:49 +0000 | [diff] [blame] | 15 | docs \ |
Thomas Vander Stichele | 0c5153f | 2003-11-15 11:58:49 +0000 | [diff] [blame] | 16 | pkgconfig po \ |
Thomas Vander Stichele | 50a2f3f | 2005-09-03 13:49:49 +0000 | [diff] [blame] | 17 | common |
Richard Boulton | 5637570 | 2001-01-01 13:41:27 +0000 | [diff] [blame] | 18 | |
Richard Boulton | 9ae673e | 2000-08-18 23:31:30 +0000 | [diff] [blame] | 19 | # These are all the possible subdirs |
Thomas Vander Stichele | 756dc09 | 2004-08-13 14:03:05 +0000 | [diff] [blame] | 20 | DIST_SUBDIRS = \ |
Thomas Vander Stichele | c936487 | 2005-11-30 16:39:04 +0000 | [diff] [blame] | 21 | gst libs plugins tools tests \ |
Thomas Vander Stichele | 50a2f3f | 2005-09-03 13:49:49 +0000 | [diff] [blame] | 22 | docs \ |
Thomas Vander Stichele | e1d580a | 2005-10-08 11:10:17 +0000 | [diff] [blame] | 23 | pkgconfig po \ |
Thomas Vander Stichele | 50a2f3f | 2005-09-03 13:49:49 +0000 | [diff] [blame] | 24 | common |
Erik Walthinsen | 2da16ed | 2001-01-01 08:37:41 +0000 | [diff] [blame] | 25 | |
Thomas Vander Stichele | 756dc09 | 2004-08-13 14:03:05 +0000 | [diff] [blame] | 26 | win32 = $(shell cat $(top_srcdir)/win32/MANIFEST) |
| 27 | |
| 28 | debug: |
| 29 | echo $(win32) |
Thomas Vander Stichele | 0442db0 | 2006-05-03 16:40:57 +0000 | [diff] [blame] | 30 | |
Thomas Vander Stichele | 756dc09 | 2004-08-13 14:03:05 +0000 | [diff] [blame] | 31 | EXTRA_DIST = \ |
Tim-Philipp Müller | 1a449fc | 2006-07-07 09:09:10 +0000 | [diff] [blame] | 32 | gstreamer.spec gstreamer.spec.in \ |
| 33 | gst-element-check.m4 gst-element-check.m4.in \ |
Thomas Vander Stichele | 756dc09 | 2004-08-13 14:03:05 +0000 | [diff] [blame] | 34 | configure.ac autogen.sh depcomp \ |
Thomas Vander Stichele | ed893fd | 2005-11-30 08:52:41 +0000 | [diff] [blame] | 35 | ABOUT-NLS RELEASE \ |
Thomas Vander Stichele | e1d580a | 2005-10-08 11:10:17 +0000 | [diff] [blame] | 36 | $(win32) |
David Schleef | d4ee10b | 2003-10-09 01:13:21 +0000 | [diff] [blame] | 37 | |
| 38 | CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4 |
Erik Walthinsen | 0032727 | 2000-01-31 09:43:08 +0000 | [diff] [blame] | 39 | |
Thomas Vander Stichele | c7c3a5a | 2004-03-18 12:14:43 +0000 | [diff] [blame] | 40 | include $(top_srcdir)/common/release.mak |
Thomas Vander Stichele | fa90378 | 2004-05-03 13:45:22 +0000 | [diff] [blame] | 41 | include $(top_srcdir)/common/po.mak |
Richard Boulton | 378c15b | 2001-05-30 14:39:06 +0000 | [diff] [blame] | 42 | |
David Schleef | 67062b7 | 2004-01-09 01:42:11 +0000 | [diff] [blame] | 43 | if GST_GCOV_ENABLED |
| 44 | clean-gcov: |
| 45 | find -name "*.da" -o -name "*.gcov" | xargs rm || true |
| 46 | |
| 47 | clean-bbg: |
| 48 | find -name "*.bbg" -o -name "*.bb" | xargs rm || true |
| 49 | |
| 50 | GCOV_DIRS=gst libs |
| 51 | |
| 52 | ## .PHONY so it always rebuilds it |
Stefan Kost | 8c7cf90 | 2005-06-03 18:26:59 +0000 | [diff] [blame] | 53 | .PHONY: coverage-report.txt test-coverage-report.html |
Thomas Vander Stichele | 3a7384e | 2004-02-12 19:21:12 +0000 | [diff] [blame] | 54 | |
David Schleef | 67062b7 | 2004-01-09 01:42:11 +0000 | [diff] [blame] | 55 | coverage-report.txt: |
Thomas Vander Stichele | ac6e27f | 2004-02-12 19:10:23 +0000 | [diff] [blame] | 56 | BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \ |
| 57 | C_FILES= ; \ |
| 58 | for F in $$BBG_FILES ; do \ |
| 59 | F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \ |
| 60 | C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \ |
| 61 | B=`basename $$F .bbg` ; \ |
| 62 | D=`dirname $$F` ; \ |
| 63 | DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \ |
| 64 | DA_libs=`echo $$D/.libs/$$B/.da` ; \ |
| 65 | if test -e $$DA || test -e $$DA_libs; then \ |
| 66 | C_FILES="$$C_FILES $$C" ; \ |
| 67 | fi ; \ |
| 68 | done ; \ |
| 69 | echo $$C_FILES ; \ |
David Schleef | 67062b7 | 2004-01-09 01:42:11 +0000 | [diff] [blame] | 70 | $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt |
| 71 | |
Stefan Kost | 8c7cf90 | 2005-06-03 18:26:59 +0000 | [diff] [blame] | 72 | test-coverage-report.html: |
| 73 | mkdir -p ./coverage |
| 74 | lcov --directory . --zerocounters |
Stefan Kost | e066e8b | 2005-07-05 12:17:24 +0000 | [diff] [blame] | 75 | -$(MAKE) check |
Stefan Kost | 8c7cf90 | 2005-06-03 18:26:59 +0000 | [diff] [blame] | 76 | lcov --directory . --capture --output-file ./coverage/$(PACKAGE).info |
| 77 | genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info |
| 78 | |
David Schleef | 67062b7 | 2004-01-09 01:42:11 +0000 | [diff] [blame] | 79 | check-coverage: clean-gcov all check coverage-report.txt |
| 80 | cat coverage-report.txt |
| 81 | |
| 82 | else |
| 83 | coverage-report.txt: |
| 84 | echo "Need to reconfigure with --enable-gcov" |
Stefan Kost | 8c7cf90 | 2005-06-03 18:26:59 +0000 | [diff] [blame] | 85 | |
| 86 | test-coverage-report.html: |
| 87 | echo "Need to reconfigure with --enable-gcov" |
David Schleef | 67062b7 | 2004-01-09 01:42:11 +0000 | [diff] [blame] | 88 | |
| 89 | check-coverage: |
| 90 | echo "Need to reconfigure with --enable-gcov" |
David Schleef | 67062b7 | 2004-01-09 01:42:11 +0000 | [diff] [blame] | 91 | endif |
Thomas Vander Stichele | d5e378b | 2005-09-17 18:11:27 +0000 | [diff] [blame] | 92 | |
Thomas Vander Stichele | eaf1708 | 2005-11-28 19:58:56 +0000 | [diff] [blame] | 93 | if HAVE_CHECK |
Thomas Vander Stichele | d5e378b | 2005-09-17 18:11:27 +0000 | [diff] [blame] | 94 | check-valgrind: |
Thomas Vander Stichele | 7533cf8 | 2005-11-30 16:08:31 +0000 | [diff] [blame] | 95 | cd tests/check && make check-valgrind |
Thomas Vander Stichele | 8817d3e | 2005-10-12 20:23:42 +0000 | [diff] [blame] | 96 | |
Thomas Vander Stichele | cdb0102 | 2005-11-23 21:24:46 +0000 | [diff] [blame] | 97 | check-torture: |
Thomas Vander Stichele | 7533cf8 | 2005-11-30 16:08:31 +0000 | [diff] [blame] | 98 | cd tests/check && make torture |
Thomas Vander Stichele | eaf1708 | 2005-11-28 19:58:56 +0000 | [diff] [blame] | 99 | else |
| 100 | check-valgrind: |
Thomas Vander Stichele | 038035d | 2005-11-30 10:50:57 +0000 | [diff] [blame] | 101 | echo "'check' library not installed, skipping" |
Thomas Vander Stichele | eaf1708 | 2005-11-28 19:58:56 +0000 | [diff] [blame] | 102 | |
| 103 | check-torture: |
Thomas Vander Stichele | 038035d | 2005-11-30 10:50:57 +0000 | [diff] [blame] | 104 | echo "'check' library not installed, skipping" |
Thomas Vander Stichele | eaf1708 | 2005-11-28 19:58:56 +0000 | [diff] [blame] | 105 | endif |
Thomas Vander Stichele | cdb0102 | 2005-11-23 21:24:46 +0000 | [diff] [blame] | 106 | |
Thomas Vander Stichele | 34eabc4 | 2006-05-12 14:53:49 +0000 | [diff] [blame] | 107 | # FIXME: this target should be run every time we do "make release" |
| 108 | # find a way of automating that |
Thomas Vander Stichele | 8817d3e | 2005-10-12 20:23:42 +0000 | [diff] [blame] | 109 | win32-update: |
| 110 | for f in gstversion.h gstenumtypes.c gstenumtypes.h; do \ |
| 111 | cp $(top_builddir)/gst/$$f win32/common; done |
Thomas Vander Stichele | 34eabc4 | 2006-05-12 14:53:49 +0000 | [diff] [blame] | 112 | $(top_srcdir)/tools/gst-indent win32/common/gstenumtypes.c |
Thomas Vander Stichele | 2c976b1 | 2006-07-02 21:54:43 +0000 | [diff] [blame] | 113 | |
| 114 | include $(top_srcdir)/common/coverage/lcov.mak |