2001-01-14 21:55:41 +00:00
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @VERSION@
|
|
|
|
|
2001-02-07 22:23:54 +00:00
|
|
|
if BUILD_DOCS
|
|
|
|
SUBDIRS_DOCS = docs
|
|
|
|
else
|
|
|
|
SUBDIRS_DOCS =
|
|
|
|
endif
|
|
|
|
|
2001-06-02 13:38:57 +00:00
|
|
|
if BUILD_TESTS
|
2004-12-08 17:40:37 +00:00
|
|
|
## SUBDIRS_TESTS = tests testsuite
|
|
|
|
## FIXME: write tests from scratch
|
|
|
|
SUBDIRS_TESTS =
|
2004-12-13 14:49:11 +00:00
|
|
|
if HAVE_CHECK
|
|
|
|
SUBDIRS_CHECK = check
|
|
|
|
else
|
|
|
|
SUBDIRS_CHECK =
|
|
|
|
endif
|
2001-06-02 13:38:57 +00:00
|
|
|
else
|
|
|
|
SUBDIRS_TESTS =
|
2004-12-13 14:49:11 +00:00
|
|
|
SUBDIRS_CHECK =
|
2001-06-02 13:38:57 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILD_EXAMPLES
|
2004-12-08 17:40:37 +00:00
|
|
|
## FIXME: write examples from scratch
|
|
|
|
# SUBDIRS_EXAMPLES = examples
|
|
|
|
SUBDIRS_EXAMPLES =
|
2001-06-02 13:38:57 +00:00
|
|
|
else
|
|
|
|
SUBDIRS_EXAMPLES =
|
|
|
|
endif
|
|
|
|
|
2003-04-07 21:28:57 +00:00
|
|
|
all-local: gst-element-check-@GST_MAJORMINOR@.m4
|
2001-01-01 08:37:41 +00:00
|
|
|
|
2003-04-07 21:28:57 +00:00
|
|
|
gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
|
|
|
|
cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
|
2002-12-08 19:34:34 +00:00
|
|
|
|
2003-12-02 04:53:52 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I common/m4
|
|
|
|
|
2003-04-07 21:28:57 +00:00
|
|
|
aclocaldir = $(datadir)/aclocal
|
|
|
|
aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
|
2002-12-08 14:39:38 +00:00
|
|
|
|
2004-08-13 14:03:05 +00:00
|
|
|
SUBDIRS = \
|
|
|
|
include gst libs tools \
|
2004-12-13 14:49:11 +00:00
|
|
|
$(SUBDIRS_CHECK) \
|
|
|
|
$(SUBDIRS_TESTS) \
|
|
|
|
$(SUBDIRS_EXAMPLES) \
|
2003-11-15 11:58:49 +00:00
|
|
|
pkgconfig po \
|
2004-03-18 12:14:43 +00:00
|
|
|
common \
|
2003-11-15 11:58:49 +00:00
|
|
|
$(SUBDIRS_DOCS)
|
2001-05-25 21:00:07 +00:00
|
|
|
|
2003-04-07 21:28:57 +00:00
|
|
|
# These are all the possible subdirs
|
2004-08-13 14:03:05 +00:00
|
|
|
DIST_SUBDIRS = \
|
|
|
|
include libs gst \
|
2003-04-07 21:28:57 +00:00
|
|
|
tools \
|
2004-12-13 14:49:11 +00:00
|
|
|
check \
|
2003-04-07 21:28:57 +00:00
|
|
|
tests testsuite \
|
|
|
|
examples \
|
2003-10-09 01:13:21 +00:00
|
|
|
pkgconfig \
|
2003-11-15 11:58:49 +00:00
|
|
|
po \
|
2004-03-18 12:14:43 +00:00
|
|
|
common \
|
2004-08-17 09:37:14 +00:00
|
|
|
docs
|
2003-04-07 21:28:57 +00:00
|
|
|
|
2004-08-13 14:03:05 +00:00
|
|
|
win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
|
|
|
|
|
|
|
|
debug:
|
|
|
|
echo $(win32)
|
|
|
|
EXTRA_DIST = \
|
|
|
|
gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
|
|
|
|
configure.ac autogen.sh depcomp \
|
|
|
|
REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL RELEASE \
|
|
|
|
$(win32) \
|
|
|
|
idiottest.mak
|
2003-10-09 01:13:21 +00:00
|
|
|
|
|
|
|
CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
|
2000-01-31 09:43:08 +00:00
|
|
|
|
2001-05-31 18:35:11 +00:00
|
|
|
include $(top_srcdir)/idiottest.mak
|
2004-03-18 12:14:43 +00:00
|
|
|
include $(top_srcdir)/common/release.mak
|
2004-05-03 13:45:22 +00:00
|
|
|
include $(top_srcdir)/common/po.mak
|
2001-05-30 14:39:06 +00:00
|
|
|
|
2004-01-09 01:42:11 +00:00
|
|
|
|
|
|
|
if GST_GCOV_ENABLED
|
|
|
|
clean-gcov:
|
|
|
|
find -name "*.da" -o -name "*.gcov" | xargs rm || true
|
|
|
|
|
|
|
|
clean-bbg:
|
|
|
|
find -name "*.bbg" -o -name "*.bb" | xargs rm || true
|
|
|
|
|
|
|
|
GCOV_DIRS=gst libs
|
|
|
|
|
|
|
|
## .PHONY so it always rebuilds it
|
|
|
|
.PHONY: coverage-report.txt
|
2004-02-12 19:21:12 +00:00
|
|
|
|
2004-01-09 01:42:11 +00:00
|
|
|
coverage-report.txt:
|
2004-02-12 19:10:23 +00:00
|
|
|
BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
|
|
|
|
C_FILES= ; \
|
|
|
|
for F in $$BBG_FILES ; do \
|
|
|
|
F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
|
|
|
|
C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
|
|
|
|
B=`basename $$F .bbg` ; \
|
|
|
|
D=`dirname $$F` ; \
|
|
|
|
DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
|
|
|
|
DA_libs=`echo $$D/.libs/$$B/.da` ; \
|
|
|
|
if test -e $$DA || test -e $$DA_libs; then \
|
|
|
|
C_FILES="$$C_FILES $$C" ; \
|
|
|
|
fi ; \
|
|
|
|
done ; \
|
|
|
|
echo $$C_FILES ; \
|
2004-01-09 01:42:11 +00:00
|
|
|
$(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
|
|
|
|
|
|
|
|
check-coverage: clean-gcov all check coverage-report.txt
|
|
|
|
cat coverage-report.txt
|
|
|
|
|
|
|
|
else
|
|
|
|
coverage-report.txt:
|
|
|
|
echo "Need to reconfigure with --enable-gcov"
|
|
|
|
|
|
|
|
check-coverage:
|
|
|
|
echo "Need to reconfigure with --enable-gcov"
|
|
|
|
endif
|