]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | ## Makefile.in for ICU tests |
374ca955 | 2 | ## Copyright (c) 1999-2004, 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 \ | |
27 | check check-recursive check-local | |
28 | ||
29 | ## Clear suffix list | |
30 | .SUFFIXES : | |
31 | ||
32 | ## List of standard targets | |
33 | everything: all-recursive all-local | |
34 | all: | |
35 | ifneq ($(RECURSIVE),YES) | |
36 | @echo simply use \`make\' \(or \`make everything\'\) to do all | |
37 | endif | |
38 | ||
39 | install: install-recursive install-local | |
40 | clean: clean-recursive clean-local | |
41 | distclean : distclean-recursive distclean-local | |
374ca955 A |
42 | $(RMV) hdrtst/Makefile |
43 | ||
b75a7d8f A |
44 | dist: dist-recursive dist-local |
45 | check: everything check-recursive check-local | |
374ca955 | 46 | check-recursive: all-recursive |
b75a7d8f A |
47 | |
48 | ## Recursive targets | |
49 | all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive: | |
50 | @dot_seen=no; \ | |
51 | target=`echo $@ | sed s/-recursive//`; \ | |
52 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
53 | echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \ | |
54 | if test "$$subdir" = "."; then \ | |
55 | dot_seen=yes; \ | |
56 | local_target="$$target-local"; \ | |
57 | else \ | |
58 | local_target="$$target"; \ | |
59 | fi; \ | |
60 | (cd $$subdir && $(MAKE) $$local_target) || exit; \ | |
61 | done; \ | |
62 | if test "$$dot_seen" = "no"; then \ | |
63 | $(MAKE) "$$target-local" || exit; \ | |
64 | fi | |
65 | ||
66 | all-local: | |
67 | ||
68 | install-local: | |
69 | ||
70 | dist-local: | |
71 | ||
72 | clean-local: | |
73 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
74 | ||
75 | distclean-local: clean-local | |
76 | $(RMV) Makefile | |
77 | ||
78 | check-local: all-local | |
79 | ||
80 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
81 | cd $(top_builddir) \ | |
82 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
83 |