]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | #****************************************************************************** |
2 | # | |
3 | # Copyright (C) 1998-2000, International Business Machines | |
4 | # Corporation and others. All Rights Reserved. | |
5 | # | |
6 | #****************************************************************************** | |
7 | ## Top-level Makefile.in for ICU | |
8 | ## Stephen F. Booth | |
9 | ||
10 | ## Source directory information | |
11 | srcdir = @srcdir@ | |
12 | top_srcdir = @top_srcdir@ | |
13 | ||
14 | top_builddir = ../.. | |
15 | ||
16 | include $(top_builddir)/icudefs.mk | |
17 | ||
18 | ## Build directory information | |
19 | subdir = test/testdata | |
20 | ||
21 | ## Optional directory setup | |
22 | @EXTRAS_TRUE@EXTRA = extra | |
23 | @EXTRAS_FALSE@EXTRA = | |
24 | @TESTS_TRUE@TEST = test | |
25 | @TESTS_FALSE@TEST = | |
26 | @SAMPLES_TRUE@SAMPLE = samples | |
27 | @SAMPLES_FALSE@SAMPLE = | |
28 | ||
29 | ||
30 | ## Files to remove for 'make clean' | |
31 | CLEANFILES = *~ | |
32 | ||
33 | DOCDIRS = | |
34 | SUBDIRS = | |
35 | ||
36 | ## Extra files to install [nothing at present] | |
37 | EXTRA_DATA = | |
38 | ||
39 | ## List of phony targets | |
40 | .PHONY : all all-local all-recursive install install-local install-udata install-udata-files install-udata-dlls \ | |
41 | install-recursive clean clean-local clean-recursive distclean \ | |
42 | distclean-local distclean-recursive doc dist dist-local dist-recursive \ | |
43 | check check-local check-recursive builddata | |
44 | ||
45 | ## Clear suffix list | |
46 | .SUFFIXES : | |
47 | ||
48 | ## List of standard targets | |
49 | all: all-local all-recursive | |
50 | install: install-recursive install-local | |
51 | clean: clean-recursive clean-local | |
52 | distclean : distclean-recursive distclean-local | |
53 | dist: dist-recursive dist-local | |
54 | check: all check-recursive check-local | |
55 | ||
56 | ## Recursive targets | |
57 | all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive: | |
58 | @dot_seen=no; \ | |
59 | target=`echo $@ | sed s/-recursive//`; \ | |
60 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
61 | echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \ | |
62 | if test "$$subdir" = "."; then \ | |
63 | dot_seen=yes; \ | |
64 | local_target="$$target-local"; \ | |
65 | else \ | |
66 | local_target="$$target"; \ | |
67 | fi; \ | |
68 | (cd $$subdir && $(MAKE) $$local_target) || exit; \ | |
69 | done; \ | |
70 | if test "$$dot_seen" = "no"; then \ | |
71 | $(MAKE) "$$target-local" || exit; \ | |
72 | fi | |
73 | ||
74 | all-local: builddata | |
75 | ||
76 | install-local: | |
77 | ||
78 | dist-local: | |
79 | ||
80 | clean-local: | |
81 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
82 | ifneq ($(wildcard .links),) | |
83 | $(RMV) *.goo *.txt *.bin .links | |
84 | endif | |
85 | ||
86 | distclean-local: clean-local | |
87 | $(RMV) Makefile | |
88 | ||
89 | check-local: | |
90 | ||
91 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
92 | cd $(top_builddir) \ | |
93 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
94 | ||
95 | builddata: default.goo | |
96 | ||
97 | ifneq ($(srcdir),.) | |
98 | ||
99 | default.goo: $(srcdir)/default.goo | |
100 | $(RMV) *.goo *.txt *.bin | |
101 | ln -s $(srcdir)/*.goo $(srcdir)/*.txt $(srcdir)/*.bin . | |
102 | touch .links | |
103 | ||
104 | endif | |
105 |