]>
Commit | Line | Data |
---|---|---|
1 | ## Makefile.in for ICU samples | |
2 | ## Copyright (c) 1999-2011, International Business Machines Corporation and | |
3 | ## others. All Rights Reserved. | |
4 | ||
5 | ## Install 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 = samples | |
15 | ||
16 | ## Platform-specific setup | |
17 | include @platform_make_fragment@ | |
18 | ||
19 | ## Files to remove for 'make clean' | |
20 | CLEANFILES = *~ | |
21 | ||
22 | SUBDIRS = date cal | |
23 | ALLSUBDIRS = break case csdet datefmt msgfmt numfmt props translit ucnv udata ufortune uresb ustring citer uciter8 ugrep | |
24 | ||
25 | ## List of phony targets | |
26 | .PHONY : all all-local all-recursive install install-local \ | |
27 | install-recursive clean clean-local clean-recursive distclean \ | |
28 | distclean-local distclean-recursive dist dist-recursive dist-local \ | |
29 | check check-recursive check-local check-exhaustive | |
30 | ||
31 | ## Clear suffix list | |
32 | .SUFFIXES : | |
33 | ||
34 | ## List of standard targets | |
35 | all: all-recursive all-local | |
36 | install: install-recursive install-local | |
37 | clean: clean-recursive clean-local | |
38 | distclean : distclean-recursive distclean-local | |
39 | dist: dist-recursive dist-local | |
40 | ||
41 | all-samples: all-samples-recursive | |
42 | clean-samples: clean-samples-recursive | |
43 | check-samples: check-samples-recursive | |
44 | ||
45 | # Note (srl 4/15/2002) do NOT recursively check samples for 2.1, look into testing them in the future. | |
46 | #check: all check-recursive check-local | |
47 | check: all check-local | |
48 | ||
49 | check-exhaustive: check | |
50 | ||
51 | ## Recursive targets | |
52 | all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive: | |
53 | @dot_seen=no; \ | |
54 | target=`echo $@ | sed s/-recursive//`; \ | |
55 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
56 | echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \ | |
57 | if test "$$subdir" = "."; then \ | |
58 | dot_seen=yes; \ | |
59 | local_target="$$target-local"; \ | |
60 | else \ | |
61 | local_target="$$target"; \ | |
62 | fi; \ | |
63 | (cd $$subdir && $(MAKE) $$local_target) || exit; \ | |
64 | done; \ | |
65 | if test "$$dot_seen" = "no"; then \ | |
66 | $(MAKE) "$$target-local" || exit; \ | |
67 | fi | |
68 | ||
69 | all-samples-recursive check-samples-recursive clean-samples-recursive: | |
70 | @dot_seen=no; \ | |
71 | target=`echo $@ | sed s/-recursive//`; \ | |
72 | subtarget=`echo $@ | sed s/-samples-recursive//`; \ | |
73 | list='$(SUBDIRS) $(ALLSUBDIRS)'; for subdir in $$list; do \ | |
74 | echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$subtarget' in \`$$subdir'"; \ | |
75 | if test "$$subdir" = "."; then \ | |
76 | dot_seen=yes; \ | |
77 | local_target="$$subtarget-local"; \ | |
78 | else \ | |
79 | local_target="$$subtarget"; \ | |
80 | fi; \ | |
81 | (cd $$subdir && $(MAKE) $$local_target) || exit; \ | |
82 | done; \ | |
83 | if test "$$dot_seen" = "no"; then \ | |
84 | $(MAKE) "$$subtarget-local" || exit; \ | |
85 | fi | |
86 | ||
87 | ||
88 | all-local: | |
89 | ||
90 | install-local: | |
91 | ||
92 | dist-local: | |
93 | ||
94 | clean-local: | |
95 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
96 | ||
97 | check-local: | |
98 | ||
99 | distclean-local: clean-local | |
100 | $(RMV) Makefile | |
101 | ||
102 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
103 | cd $(top_builddir) \ | |
104 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |