]> git.saurik.com Git - apple/icu.git/blob - icuSources/Makefile.in
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / Makefile.in
1 #******************************************************************************
2 #
3 # Copyright (C) 1998-2003, 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 srcdir = @srcdir@
11 top_srcdir = @top_srcdir@
12
13 top_builddir = .
14
15 include $(top_builddir)/icudefs.mk
16
17 docdir = $(datadir)/doc
18 docsubdir = $(PACKAGE)$(ICULIBDASHSUFFIX)/html
19
20 ##
21
22 ## Build directory information
23 subdir = .
24
25 AUTOCONF = @AUTOCONF@
26
27 ## Platform-specific setup
28 include @platform_make_fragment@
29
30 ## Optional directory setup
31 @EXTRAS_TRUE@EXTRA = extra
32 @EXTRAS_FALSE@EXTRA =
33 @LAYOUT_TRUE@LAYOUT = layout layoutex
34 @LAYOUT_FALSE@LAYOUT =
35 @TESTS_TRUE@TEST = test
36 @TESTS_FALSE@TEST =
37 @SAMPLES_TRUE@SAMPLE = samples
38 @SAMPLES_FALSE@SAMPLE =
39
40 DOXYGEN = @DOXYGEN@
41
42 ## Files to remove for 'make clean'
43 CLEANFILES = *~ README
44
45 ## Files built (autoconfed) and installed
46 INSTALLED_BUILT_FILES = $(top_builddir)/config/Makefile.inc $(top_builddir)/config/icu-config @platform_make_fragment@ README $(EXTRA_DATA:%=$(DESTDIR)$(pkglibdir)/%)
47
48 ## Files built (autoconfed) but not installed
49 LOCAL_BUILT_FILES = icudefs.mk
50
51 DOCDIRS = common i18n
52 SUBDIRS = stubdata common i18n $(LAYOUT) tools data $(EXTRA) $(TEST) $(SAMPLE)
53
54 SECTION = 1
55
56 MANX_FILES = config/icu-config.$(SECTION)
57
58 ALL_MAN_FILES = $(MANX_FILES)
59
60 ## Extra files to install [nothing at present]
61 EXTRA_DATA =
62
63 ## List of phony targets
64 .PHONY : all all-local all-recursive install install-local install-udata install-udata-files install-udata-dlls \
65 install-recursive clean clean-local clean-recursive distclean \
66 distclean-local distclean-recursive doc dist dist-local dist-recursive \
67 check check-local check-recursive clean-recursive-with-twist install-icu \
68 doc install-doc
69
70 ## Clear suffix list
71 .SUFFIXES :
72
73 ## List of standard targets
74 all: all-local all-recursive
75 install: install-recursive install-local
76 clean: clean-recursive-with-twist clean-local
77 distclean : distclean-recursive distclean-local
78 dist: dist-recursive dist-local
79 check: all check-recursive check-local
80
81 ifeq ($(DOXYGEN),)
82 doc:
83 @echo you need Doxygen to generate documentation. Doxygen can be found on the Web
84 @echo at http://www.doxygen.org/
85 else
86 doc: doc/html/index.html
87
88 doc/html/index.html: Doxyfile $(wildcard ./common/unicode/platform.h $(srcdir)/common/unicode/*.h $(srcdir)/i18n/unicode/*.h $(srcdir)/layout/unicode/*.h)
89 $(DOXYGEN)
90
91 Doxyfile: $(srcdir)/Doxyfile.in
92 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
93 endif
94
95 LOCAL_SUBDIRS = $(SUBDIRS)
96 CLEAN_FIRST_SUBDIRS = tools
97
98 ## Recursive targets
99 all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive:
100 @dot_seen=no; \
101 target=`echo $@ | sed s/-recursive//`; \
102 list='$(LOCAL_SUBDIRS)'; for subdir in $$list; do \
103 echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \
104 if test "$$subdir" = "."; then \
105 dot_seen=yes; \
106 local_target="$$target-local"; \
107 else \
108 local_target="$$target"; \
109 fi; \
110 (cd $$subdir && $(MAKE) RECURSIVE=YES $$local_target) || exit; \
111 done; \
112 if test "$$dot_seen" = "no"; then \
113 $(MAKE) "$$target-local" || exit; \
114 fi
115
116 clean-recursive-with-twist:
117 $(MAKE) clean-recursive LOCAL_SUBDIRS='$(CLEAN_FIRST_SUBDIRS) $(filter-out $(CLEAN_FIRST_SUBDIRS),$(LOCAL_SUBDIRS))'
118
119 all-local: $(srcdir)/configure $(LOCAL_BUILT_FILES) $(INSTALLED_BUILT_FILES)
120
121 install-local: install-icu install-manx
122
123 install-icu: $(INSTALLED_BUILT_FILES)
124 @$(MKINSTALLDIRS) $(DESTDIR)$(pkgdatadir)/config
125 @$(MKINSTALLDIRS) $(DESTDIR)$(pkglibdir)
126 @$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
127 @$(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
128 $(INSTALL_DATA) $(top_builddir)/config/Makefile.inc $(DESTDIR)$(pkglibdir)/Makefile.inc
129 cd $(DESTDIR)$(pkglibdir)/..; \
130 $(RM) current && ln -s $(VERSION) current; \
131 $(RM) Makefile.inc && ln -s current/Makefile.inc .
132 $(INSTALL_DATA) @platform_make_fragment@ $(DESTDIR)$(pkgdatadir)/config/@platform_make_fragment_name@
133 $(INSTALL_SCRIPT) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(pkgdatadir)/mkinstalldirs
134 $(INSTALL_DATA) README $(DESTDIR)$(pkgdatadir)/README
135 $(INSTALL_SCRIPT) $(top_builddir)/config/icu-config $(DESTDIR)$(bindir)/icu-config
136
137 ifeq ($(DOXYGEN),)
138 install-doc:
139 else
140 install-doc: doc
141 $(RM) -r $(DESTDIR)$(docdir)/$(docsubdir)
142 $(MKINSTALLDIRS) $(DESTDIR)$(docdir)/$(docsubdir)
143 $(INSTALL_DATA) doc/html/* $(DESTDIR)$(docdir)/$(docsubdir)
144 endif
145
146 $(DESTDIR)$(pkglibdir)/%: $(top_srcdir)/../data/%
147 $(INSTALL_DATA) $< $@
148
149 dist-local:
150
151 clean-local:
152 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
153 $(RMV) Doxyfile doc
154
155 distclean-local: clean-local
156 $(RMV) Makefile config/Makefile icudefs.mk
157 $(RMV) $(top_builddir)/config/Makefile.inc $(top_builddir)/config/icu-config
158 $(RMV) config.cache config.log config.status
159
160 check-local:
161
162 #$(srcdir)/configure : $(srcdir)/configure.in $(top_srcdir)/aclocal.m4
163 # cd $(srcdir) && $(AUTOCONF)
164
165 icudefs.mk: $(srcdir)/icudefs.mk.in $(top_builddir)/config.status
166 cd $(top_builddir) \
167 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
168
169 README: $(srcdir)/README.in $(top_builddir)/config.status
170 cd $(top_builddir) \
171 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
172
173 Makefile: $(srcdir)/Makefile.in icudefs.mk $(top_builddir)/config.status
174 cd $(top_builddir) \
175 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
176
177 $(top_builddir)/config/Makefile.inc: $(srcdir)/config/Makefile.inc.in $(top_builddir)/config.status
178 cd $(top_builddir) \
179 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
180
181 $(top_builddir)/config/icu-config: $(top_builddir)/Makefile $(top_srcdir)/config/icu-config-top $(top_srcdir)/config/icu-config-bottom $(top_builddir)/config/Makefile.inc @platform_make_fragment@ $(top_srcdir)/config/make2sh.sed
182 -$(RMV) $@
183 $(INSTALL_DATA) $(top_srcdir)/config/icu-config-top $@
184 @echo "# Following from @platform_make_fragment@" >> $@
185 sed -f $(top_srcdir)/config/make2sh.sed < $(top_builddir)/config/Makefile.inc | grep -v '#M#' | uniq >> $@
186 sed -f $(top_srcdir)/config/make2sh.sed < @platform_make_fragment@ | grep -v '#M#' | uniq >> $@
187 cat $(top_srcdir)/config/icu-config-bottom >> $@
188 echo "# Rebuilt on "`date` >> $@
189
190 config.status: $(srcdir)/configure $(srcdir)/common/unicode/uversion.h
191 @echo
192 @echo
193 @echo "*** config.status has become stale ***"
194 @echo " 'configure' and/or 'uversion.h' have changed, please"
195 @echo " do 'runConfigureICU' (or 'configure') again, as per"
196 @echo " the readme.html."
197 @echo
198 @echo
199 exit 1
200
201
202 install-manx: $(MANX_FILES)
203 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
204 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
205
206 config/%.$(SECTION): $(srcdir)/config/%.$(SECTION).in
207 cd $(top_builddir) \
208 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
209