aboutsummaryrefslogtreecommitdiff
path: root/libxcb/tests/Makefile.am
blob: ceef722c2b4ba03cce326008cf4319a41f5e2484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
########################
## tests/Makefile.am
########################
SUBDIRS = 
EXTRA_DIST = CheckLog.xsl
AM_MAKEFLAGS = -k
AM_CFLAGS = -Wall -Werror @CHECK_CFLAGS@ -I$(top_srcdir)/src
LDADD = @CHECK_LIBS@ $(top_builddir)/src/libxcb.la

if HAVE_CHECK
TESTS = check_all
check_PROGRAMS = check_all
check_all_SOURCES =  check_all.c check_suites.h check_public.c

check-local: check-TESTS
	$(RM) CheckLog.html
	if test x$(HTML_CHECK_RESULT) = xyes; then \
		$(XSLTPROC) $(srcdir)/CheckLog.xsl CheckLog*.xml > CheckLog.html; \
	else \
		touch CheckLog.html; \
	fi

CheckLog.html: $(check_PROGRAMS)
	$(MAKE) $(AM_MAKEFLAGS) check;

endif

clean-local::
	$(RM) CheckLog.html CheckLog*.txt CheckLog*.xml