1## Makefile.in for ICU tests
2## Copyright (c) 1999-2010, International Business Machines Corporation and
3## others. All Rights Reserved.
4
5## Source directory information
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8
9top_builddir = ..
10
11include $(top_builddir)/icudefs.mk
12
13## Build directory information
14subdir = test
15
16@ICUIO_TRUE@IOTEST = iotest
17
18## Files to remove for 'make clean'
19CLEANFILES = *~
20
21SUBDIRS = testdata intltest $(IOTEST) cintltst
22
23## List of phony targets
24.PHONY : everything all all-local all-recursive install install-local		\
25install-recursive clean clean-local clean-recursive distclean		\
26distclean-local distclean-recursive dist dist-recursive dist-local	\
27check check-recursive check-local xcheck xcheck-recursive xcheck-local
28
29## Clear suffix list
30.SUFFIXES :
31
32## List of standard targets
33everything: all-recursive all-local
34all:
35ifneq ($(RECURSIVE),YES)
36	@echo simply use \`make\' \(or \`make everything\'\) to do all
37endif
38
39install: install-recursive install-local
40clean: clean-recursive clean-local
41distclean : distclean-recursive distclean-local
42	$(RMV) hdrtst/Makefile
43	$(RMV) perf/convperf/Makefile
44
45dist: dist-recursive dist-local
46check: everything check-recursive check-local
47check-recursive: all-recursive
48# the xcheck targets create a ../test-*.xml file in JUnit format.
49xcheck: everything xcheck-recursive xcheck-local
50xcheck-recursive: all-recursive
51
52## Recursive targets
53all-recursive install-recursive clean-recursive distclean-recursive dist-recursive:
54	@dot_seen=no; \
55	target=`echo $@ | sed s/-recursive//`; \
56	list='$(SUBDIRS)'; for subdir in $$list; do \
57	  echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \
58	  if test "$$subdir" = "."; then \
59	    dot_seen=yes; \
60	    local_target="$$target-local"; \
61	  else \
62	    local_target="$$target"; \
63	  fi; \
64	  (cd $$subdir && $(MAKE) $$local_target) || exit; \
65	done; \
66	if test "$$dot_seen" = "no"; then \
67	  $(MAKE) "$$target-local" || exit; \
68	fi
69
70xcheck-recursive check-recursive:
71	@goods=; \
72	bads=; \
73	target=`echo $@ | sed s/-recursive//`; \
74	list='$(SUBDIRS)'; for subdir in $$list; do \
75	  echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \
76	  local_target="$$target"; \
77	  if (cd $$subdir && $(MAKE) $$local_target); then \
78	    goods="$$goods $$subdir"; \
79          else \
80            bads="$$bads $$subdir"; \
81          fi; \
82	done; \
83	echo "---------------"; \
84	echo "ALL TESTS SUMMARY:"; \
85        if test ! "x$$bads" = "x"; then \
86	  echo "ok: $$goods"; \
87	  echo "===== ERRS: $$bads"; exit 1; \
88	else \
89	  echo "All tests OK: $$goods"; \
90	fi
91
92all-local:
93
94install-local:
95
96dist-local:
97
98clean-local:
99	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
100
101distclean-local: clean-local
102	$(RMV) Makefile
103
104xcheck-local check-local: all-local
105
106Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
107	cd $(top_builddir) \
108	&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
109
110