1## Makefile.in for ICU tests
2## Copyright (c) 1999-2011, 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	\
28check-exhaustive check-exhaustive-recursive
29
30## Clear suffix list
31.SUFFIXES :
32
33## List of standard targets
34everything: all-recursive all-local
35all:
36ifneq ($(RECURSIVE),YES)
37	@echo simply use \`make\' \(or \`make everything\'\) to do all
38endif
39
40install: install-recursive install-local
41clean: clean-recursive clean-local
42distclean : distclean-recursive distclean-local
43	$(RMV) hdrtst/Makefile
44	$(RMV) perf/convperf/Makefile
45
46dist: dist-recursive dist-local
47check: everything check-recursive check-local
48check-recursive: all-recursive
49# the xcheck targets create a ../test-*.xml file in JUnit format.
50xcheck: everything xcheck-recursive xcheck-local
51xcheck-recursive: all-recursive
52check-exhaustive: everything check-exhaustive-recursive check-local
53
54## Recursive targets
55all-recursive install-recursive clean-recursive distclean-recursive dist-recursive:
56	@dot_seen=no; \
57	target=`echo $@ | sed s/-recursive//`; \
58	list='$(SUBDIRS)'; for subdir in $$list; do \
59	  echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \
60	  if test "$$subdir" = "."; then \
61	    dot_seen=yes; \
62	    local_target="$$target-local"; \
63	  else \
64	    local_target="$$target"; \
65	  fi; \
66	  (cd $$subdir && $(MAKE) $$local_target) || exit; \
67	done; \
68	if test "$$dot_seen" = "no"; then \
69	  $(MAKE) "$$target-local" || exit; \
70	fi
71
72xcheck-recursive check-recursive check-exhaustive-recursive:
73	@goods=; \
74	bads=; \
75	target=`echo $@ | sed s/-recursive//`; \
76	list='$(SUBDIRS)'; for subdir in $$list; do \
77	  echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \
78	  local_target="$$target"; \
79	  if (cd $$subdir && $(MAKE) $$local_target); then \
80	    goods="$$goods $$subdir"; \
81          else \
82            bads="$$bads $$subdir"; \
83          fi; \
84	done; \
85	echo "---------------"; \
86	echo "ALL TESTS SUMMARY:"; \
87        if test ! "x$$bads" = "x"; then \
88	  echo "ok: $$goods"; \
89	  echo "===== ERRS: $$bads"; exit 1; \
90	else \
91	  echo "All tests OK: $$goods"; \
92	fi
93
94all-local:
95
96install-local:
97
98dist-local:
99
100clean-local:
101	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
102
103distclean-local: clean-local
104	$(RMV) Makefile
105
106xcheck-local check-local: all-local
107
108Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
109	cd $(top_builddir) \
110	&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
111
112