]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/Makefile.in
ICU-511.32.tar.gz
[apple/icu.git] / icuSources / test / Makefile.in
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
6 srcdir = @srcdir@
7 top_srcdir = @top_srcdir@
8
9 top_builddir = ..
10
11 include $(top_builddir)/icudefs.mk
12
13 ## Build directory information
14 subdir = test
15
16 @ICUIO_TRUE@IOTEST = iotest
17
18 ## Files to remove for 'make clean'
19 CLEANFILES = *~
20
21 SUBDIRS = testdata intltest $(IOTEST) cintltst
22
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 \
28 check-exhaustive check-exhaustive-recursive
29
30 ## Clear suffix list
31 .SUFFIXES :
32
33 ## List of standard targets
34 everything: all-recursive all-local
35 all:
36 ifneq ($(RECURSIVE),YES)
37 @echo simply use \`make\' \(or \`make everything\'\) to do all
38 endif
39
40 install: install-recursive install-local
41 clean: clean-recursive clean-local
42 distclean : distclean-recursive distclean-local
43 $(RMV) hdrtst/Makefile
44 $(RMV) perf/convperf/Makefile
45
46 dist: dist-recursive dist-local
47 check: everything check-recursive check-local
48 check-recursive: all-recursive
49 # the xcheck targets create a ../test-*.xml file in JUnit format.
50 xcheck: everything xcheck-recursive xcheck-local
51 xcheck-recursive: all-recursive
52 check-exhaustive: everything check-exhaustive-recursive check-local
53
54 ## Recursive targets
55 all-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
72 xcheck-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
94 all-local:
95
96 install-local:
97
98 dist-local:
99
100 clean-local:
101 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
102
103 distclean-local: clean-local
104 $(RMV) Makefile
105
106 xcheck-local check-local: all-local
107
108 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
109 cd $(top_builddir) \
110 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
111