]>
Commit | Line | Data |
---|---|---|
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 | |
6 | srcdir = @srcdir@ | |
7 | top_srcdir = @top_srcdir@ | |
8 | ||
9 | top_builddir = .. | |
10 | ||
11 | include $(top_builddir)/icudefs.mk | |
12 | ||
b75a7d8f A |
13 | ## Build directory information |
14 | subdir = test | |
15 | ||
374ca955 A |
16 | @ICUIO_TRUE@IOTEST = iotest |
17 | ||
b75a7d8f A |
18 | ## Files to remove for 'make clean' |
19 | CLEANFILES = *~ | |
20 | ||
374ca955 | 21 | SUBDIRS = testdata intltest $(IOTEST) cintltst |
b75a7d8f A |
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 \ | |
4388f060 A |
27 | check check-recursive check-local xcheck xcheck-recursive xcheck-local \ |
28 | check-exhaustive check-exhaustive-recursive | |
b75a7d8f A |
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 | |
374ca955 | 43 | $(RMV) hdrtst/Makefile |
46f4442e | 44 | $(RMV) perf/convperf/Makefile |
374ca955 | 45 | |
b75a7d8f A |
46 | dist: dist-recursive dist-local |
47 | check: everything check-recursive check-local | |
374ca955 | 48 | check-recursive: all-recursive |
729e4ab9 A |
49 | # the xcheck targets create a ../test-*.xml file in JUnit format. |
50 | xcheck: everything xcheck-recursive xcheck-local | |
51 | xcheck-recursive: all-recursive | |
4388f060 | 52 | check-exhaustive: everything check-exhaustive-recursive check-local |
b75a7d8f A |
53 | |
54 | ## Recursive targets | |
46f4442e | 55 | all-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 | 72 | xcheck-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 |
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 | ||
729e4ab9 | 106 | xcheck-local check-local: all-local |
b75a7d8f A |
107 | |
108 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
109 | cd $(top_builddir) \ | |
110 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
111 |