1 ## Makefile.in for ICU tests
2 ## Copyright (c) 1999-2010, International Business Machines Corporation and
3 ## others. All Rights Reserved.
5 ## Source directory information
7 top_srcdir = @top_srcdir@
11 include $(top_builddir)/icudefs.mk
13 ## Build directory information
16 @ICUIO_TRUE@IOTEST = iotest
18 ## Files to remove for 'make clean'
21 SUBDIRS = testdata intltest $(IOTEST) cintltst
23 ## List of phony targets
24 .PHONY : everything all all-local all-recursive install install-local \
25 install-recursive clean clean-local clean-recursive distclean \
26 distclean-local distclean-recursive dist dist-recursive dist-local \
27 check check-recursive check-local xcheck xcheck-recursive xcheck-local
32 ## List of standard targets
33 everything: all-recursive all-local
35 ifneq ($(RECURSIVE),YES)
36 @echo simply use \`make\' \(or \`make everything\'\) to do all
39 install: install-recursive install-local
40 clean: clean-recursive clean-local
41 distclean : distclean-recursive distclean-local
42 $(RMV) hdrtst/Makefile
43 $(RMV) perf/convperf/Makefile
45 dist: dist-recursive dist-local
46 check: everything check-recursive check-local
47 check-recursive: all-recursive
48 # the xcheck targets create a ../test-*.xml file in JUnit format.
49 xcheck: everything xcheck-recursive xcheck-local
50 xcheck-recursive: all-recursive
53 all-recursive install-recursive clean-recursive distclean-recursive dist-recursive:
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 \
60 local_target="$$target-local"; \
62 local_target="$$target"; \
64 (cd $$subdir && $(MAKE) $$local_target) || exit; \
66 if test "$$dot_seen" = "no"; then \
67 $(MAKE) "$$target-local" || exit; \
70 xcheck-recursive check-recursive:
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"; \
80 bads="$$bads $$subdir"; \
83 echo "---------------"; \
84 echo "ALL TESTS SUMMARY:"; \
85 if test ! "x$$bads" = "x"; then \
87 echo "===== ERRS: $$bads"; exit 1; \
89 echo "All tests OK: $$goods"; \
99 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
101 distclean-local: clean-local
104 xcheck-local check-local: all-local
106 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
108 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status