Imported Upstream version 58.1
[platform/upstream/icu.git] / source / samples / Makefile.in
1 ## Makefile.in for ICU samples
2 ## Copyright (C) 2016 and later: Unicode, Inc. and others.
3 ## License & terms of use: http://www.unicode.org/copyright.html#License
4 ##
5 ## Copyright (c) 1999-2011, International Business Machines Corporation and
6 ## others. All Rights Reserved.
7
8 ## Install directory information
9 srcdir = @srcdir@
10 top_srcdir = @top_srcdir@
11
12 top_builddir = ..
13
14 include $(top_builddir)/icudefs.mk
15
16 ## Build directory information
17 subdir = samples
18
19 ## Platform-specific setup
20 include @platform_make_fragment@
21
22 ## Files to remove for 'make clean'
23 CLEANFILES = *~
24
25 SUBDIRS = date cal
26 ALLSUBDIRS = break case csdet datefmt msgfmt numfmt props translit ucnv udata ufortune uresb ustring citer uciter8 ugrep
27
28 ## List of phony targets
29 .PHONY : all all-local all-recursive install install-local              \
30 install-recursive clean clean-local clean-recursive distclean           \
31 distclean-local distclean-recursive dist dist-recursive dist-local      \
32 check check-recursive check-local check-exhaustive
33
34 ## Clear suffix list
35 .SUFFIXES :
36
37 ## List of standard targets
38 all: all-recursive all-local
39 install: install-recursive install-local
40 clean: clean-recursive clean-local
41 distclean : distclean-recursive distclean-local
42 dist: dist-recursive dist-local
43
44 all-samples: all-samples-recursive
45 clean-samples: clean-samples-recursive
46 check-samples: check-samples-recursive
47
48 # Note (srl 4/15/2002) do  NOT recursively check samples for 2.1, look into testing them in the future.
49 #check: all check-recursive check-local
50 check: all check-local
51
52 check-exhaustive: check
53
54 ## Recursive targets
55 all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-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 all-samples-recursive check-samples-recursive clean-samples-recursive:
73         @dot_seen=no; \
74         target=`echo $@ | sed s/-recursive//`; \
75         subtarget=`echo $@ | sed s/-samples-recursive//`; \
76         list='$(SUBDIRS) $(ALLSUBDIRS)'; for subdir in $$list; do \
77           echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$subtarget' in \`$$subdir'"; \
78           if test "$$subdir" = "."; then \
79             dot_seen=yes; \
80             local_target="$$subtarget-local"; \
81           else \
82             local_target="$$subtarget"; \
83           fi; \
84           (cd $$subdir && $(MAKE) $$local_target) || exit; \
85         done; \
86         if test "$$dot_seen" = "no"; then \
87           $(MAKE) "$$subtarget-local" || exit; \
88         fi
89
90
91 all-local:
92
93 install-local:
94
95 dist-local:
96
97 clean-local:
98         test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
99
100 check-local:
101
102 distclean-local: clean-local
103         $(RMV) Makefile
104
105 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
106         cd $(top_builddir) \
107         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status