Tizen 2.1 base
[framework/uifw/xorg/xcb/libxcb.git] / tests / Makefile.am
1 ########################
2 ## tests/Makefile.am
3 ########################
4 SUBDIRS = 
5 EXTRA_DIST = CheckLog.xsl
6 AM_MAKEFLAGS = -k
7 AM_CFLAGS = -Wall -Werror @CHECK_CFLAGS@ -I$(top_srcdir)/src
8 LDADD = @CHECK_LIBS@ $(top_builddir)/src/libxcb.la
9
10 if HAVE_CHECK
11 TESTS = check_all
12 check_PROGRAMS = check_all
13 check_all_SOURCES =  check_all.c check_suites.h check_public.c
14
15 all-local::
16         $(RM) CheckLog*.xml
17
18 check-local: check-TESTS
19         $(RM) CheckLog.html
20         if test x$(HTML_CHECK_RESULT) = xtrue; then \
21                 $(XSLTPROC) $(srcdir)/CheckLog.xsl CheckLog*.xml > CheckLog.html; \
22         else \
23                 touch CheckLog.html; \
24         fi
25
26 CheckLog.html: $(check_PROGRAMS)
27         $(MAKE) $(AM_MAKEFLAGS) check;
28
29 endif
30
31 clean-local::
32         $(RM) CheckLog.html CheckLog*.txt CheckLog*.xml