blob: 7c3951003d68631ffbb4f09f491c3e31d505879f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
## Wrapper Makefile.am to build ICU for TeX Live.
##
## Copyright (C) 2009-2013 Peter Breitenlohner <tex-live@tug.org>
##
## This file is free software; the copyright holder
## gives unlimited permission to copy and/or distribute it,
## with or without modifications, as long as this notice is preserved.
##
ACLOCAL_AMFLAGS = -I ../../m4
# Rebuild
.PHONY: rebuild
rebuild: icubuild
cd include/unicode && $(MAKE) $(AM_MAKEFLAGS) all
SUBDIRS = .
## We want to re-distribute the whole ICU source tree.
EXTRA_DIST = $(ICU_TREE) license.html
## Patches applied to the original source tree
##
EXTRA_DIST += $(ICU_TREE)-PATCHES
# in case of an SVN repository
dist-hook:
rm -rf `find $(distdir) -name .svn`
if build
all-local: icubuild
SUBDIRS += include/unicode
else !build
all-local: icu-build/Makefile
endif !build
if cross
ICU_NATIVE = icu-native/config/icucross.mk
endif cross
icu-build/Makefile: $(ICU_NATIVE)
$(MKDIR_P) icu-build
@cmd="$(icu_config) $(icu_build_args)"; \
(cd icu-build && echo "=== configuring in icu-build (`pwd`)" && \
echo "make: running $(SHELL) $$cmd" && \
CONFIG_SHELL=$(SHELL) && export CONFIG_SHELL && \
eval $(SHELL) $$cmd)
icu-native/config/icucross.mk: icu-native/Makefile
cd icu-native && $(MAKE) $(AM_MAKEFLAGS) config/icucross.mk
icu-native/Makefile:
$(MKDIR_P) icu-native
@cmd="$(icu_config) $(icu_native_args)"; \
(cd icu-native && echo "=== configuring in icu-native (`pwd`)" && \
echo "make: running $(SHELL) $$cmd" && \
CONFIG_SHELL=$(SHELL) && export CONFIG_SHELL && \
eval $(SHELL) $$cmd)
.PHONY: icubuild check-makeflags
icubuild: icu-build/Makefile check-makeflags
if cross
cd icu-native && $(MAKE) $(AM_MAKEFLAGS) all
endif cross
cd icu-build && $(MAKE) $(AM_MAKEFLAGS) all
check-makeflags:
@for f in x $$MAKEFLAGS; do \
case $$f in \
CFLAGS=* | CPPFLAGS=* | CXXFLAGS=* | LDFLAGS=*) \
echo "Sorry, the icu build systems disallows \`make $$f'."; \
exit 1;; \
esac; \
done
distclean-local:
rm -rf icu-build icu-native
|