]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/Makefile.in
ICU-511.27.tar.gz
[apple/icu.git] / icuSources / test / Makefile.in
CommitLineData
b75a7d8f 1## Makefile.in for ICU tests
4388f060 2## Copyright (c) 1999-2011, International Business Machines Corporation and
b75a7d8f
A
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
b75a7d8f
A
13## Build directory information
14subdir = test
15
374ca955
A
16@ICUIO_TRUE@IOTEST = iotest
17
b75a7d8f
A
18## Files to remove for 'make clean'
19CLEANFILES = *~
20
374ca955 21SUBDIRS = testdata intltest $(IOTEST) cintltst
b75a7d8f
A
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 \
4388f060
A
27check check-recursive check-local xcheck xcheck-recursive xcheck-local \
28check-exhaustive check-exhaustive-recursive
b75a7d8f
A
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
374ca955 43 $(RMV) hdrtst/Makefile
46f4442e 44 $(RMV) perf/convperf/Makefile
374ca955 45
b75a7d8f
A
46dist: dist-recursive dist-local
47check: everything check-recursive check-local
374ca955 48check-recursive: all-recursive
729e4ab9
A
49# the xcheck targets create a ../test-*.xml file in JUnit format.
50xcheck: everything xcheck-recursive xcheck-local
51xcheck-recursive: all-recursive
4388f060 52check-exhaustive: everything check-exhaustive-recursive check-local
b75a7d8f
A
53
54## Recursive targets
46f4442e 55all-recursive install-recursive clean-recursive distclean-recursive dist-recursive:
b75a7d8f
A
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
4388f060 72xcheck-recursive check-recursive check-exhaustive-recursive:
46f4442e
A
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
b75a7d8f
A
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
729e4ab9 106xcheck-local check-local: all-local
b75a7d8f
A
107
108Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
109 cd $(top_builddir) \
110 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
111