]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | ## Makefile.in for ICU tools |
f3c0d7a5 A |
2 | ## Copyright (C) 2016 and later: Unicode, Inc. and others. |
3 | ## License & terms of use: http://www.unicode.org/copyright.html | |
51004dcb | 4 | ## Copyright (c) 1999-2012, International Business Machines Corporation and |
b75a7d8f A |
5 | ## others. All Rights Reserved. |
6 | ||
7 | ## Source directory information | |
8 | srcdir = @srcdir@ | |
9 | top_srcdir = @top_srcdir@ | |
10 | ||
11 | top_builddir = .. | |
12 | ||
13 | include $(top_builddir)/icudefs.mk | |
14 | ||
b75a7d8f A |
15 | ## Build directory information |
16 | subdir = tools | |
17 | ||
51004dcb | 18 | SUBDIRS = toolutil ctestfw makeconv genrb genbrk \ |
729e4ab9 | 19 | gencnval gensprep icuinfo genccode gencmn icupkg pkgdata \ |
51004dcb | 20 | gentest gennorm2 gencfu gendict |
b75a7d8f | 21 | |
f3c0d7a5 A |
22 | ifneq (@platform_make_fragment_name@,mh-cygwin-msvc) |
23 | SUBDIRS += escapesrc | |
24 | endif | |
25 | ||
b75a7d8f | 26 | ## List of phony targets |
73c04bcf | 27 | .PHONY : all all-local all-recursive install install-local \ |
b75a7d8f A |
28 | install-recursive clean clean-local clean-recursive distclean \ |
29 | distclean-local distclean-recursive dist dist-local dist-recursive \ | |
4388f060 | 30 | check check-local check-recursive build-local check-exhaustive |
b75a7d8f A |
31 | |
32 | ## Clear suffix list | |
33 | .SUFFIXES : | |
34 | ||
35 | ## List of standard targets | |
36 | all: all-recursive | |
37 | install: install-recursive | |
38 | clean: clean-local clean-recursive | |
39 | distclean : distclean-recursive | |
40 | dist: dist-recursive | |
41 | check: all check-recursive | |
42 | ||
4388f060 A |
43 | check-exhaustive: check |
44 | ||
b75a7d8f A |
45 | ## Recursive targets |
46 | all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive: | |
47 | @dot_seen=no; \ | |
48 | target=`echo $@ | sed s/-recursive//`; \ | |
49 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
50 | echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \ | |
51 | if test "$$subdir" = "."; then \ | |
52 | dot_seen=yes; \ | |
53 | local_target="$$target-local"; \ | |
54 | else \ | |
55 | local_target="$$target"; \ | |
56 | fi; \ | |
57 | (cd $$subdir && $(MAKE) $$local_target) || exit; \ | |
58 | done; \ | |
2ca993e8 | 59 | if test "$$target" != "clean"; then \ |
f3c0d7a5 | 60 | if test -n "$(TZDATA)"; then \ |
2ca993e8 A |
61 | echo "$(MAKE)[$(MAKELEVEL)]: Making \`tztoolobjs' in \`tzcode'"; \ |
62 | (cd tzcode && $(MAKE) tztoolobjs) || exit; \ | |
f3c0d7a5 | 63 | fi; \ |
2ca993e8 | 64 | fi; \ |
b75a7d8f A |
65 | if test "$$dot_seen" = "no"; then \ |
66 | $(MAKE) "$$target-local" || exit; \ | |
67 | fi | |
68 | ||
69 | all-local: build-local | |
70 | ||
b75a7d8f A |
71 | |
72 | ## Files to remove for 'make clean' | |
374ca955 | 73 | CLEANFILES = *~ |
b75a7d8f A |
74 | |
75 | install-local: | |
76 | ||
77 | dist-local: | |
78 | ||
374ca955 | 79 | clean-local: |
b75a7d8f | 80 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) |
b75a7d8f A |
81 | |
82 | # Clean up any old variations.. | |
83 | distclean-local: clean-local | |
84 | $(RMV) Makefile | |
85 | ||
b75a7d8f A |
86 | build-local: |
87 | ||
b75a7d8f A |
88 | check-local: |
89 | ||
90 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
91 | cd $(top_builddir) \ | |
92 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
93 |