diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:19:34 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:19:34 +0000 |
commit | c736ef2860429aa9916c9da4cac5b3995df00273 (patch) | |
tree | ee1fc30859f9c078800c893e9c79f21f791074c5 /Build/source/libs/icu/Makefile.am | |
parent | 9ab1d67ae5be915e0a7e146123ea577b8b7d85cf (diff) |
towards TL2010: libs/icu
git-svn-id: svn://tug.org/texlive/trunk@15954 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/Makefile.am')
-rw-r--r-- | Build/source/libs/icu/Makefile.am | 57 |
1 files changed, 44 insertions, 13 deletions
diff --git a/Build/source/libs/icu/Makefile.am b/Build/source/libs/icu/Makefile.am index 78f055bdf73..5c8b8e0bcc7 100644 --- a/Build/source/libs/icu/Makefile.am +++ b/Build/source/libs/icu/Makefile.am @@ -1,4 +1,4 @@ -## Proxy Makefile.am to build icu-xetex for TeX Live. +## Proxy Makefile.am to build ICU for TeX Live. ## ## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org> ## @@ -8,37 +8,69 @@ ## ACLOCAL_AMFLAGS = -I ../../m4 -SUBDIRS = dummy +# Rebuild +.PHONY: rebuild +rebuild: icubuild + cd icu-incl && $(MAKE) $(AM_MAKEFLAGS) all -## We want to re-distribute the whole icu-xetex source tree. -EXTRA_DIST = icu-xetex +SUBDIRS = dummy . + +## We want to re-distribute the whole ICU source tree. +EXTRA_DIST = $(ICU_TREE) + +EXTRA_DIST += 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)/icu-xetex -name .svn` + rm -rf `find $(distdir) -name .svn` ICUSUB_AUX = icusubdir-configure icusubdir-conf.args noinst_DATA = $(ICUSUB_AUX) -DISTCLEANFILES = $(noinst_DATA) +DISTCLEANFILES = $(noinst_DATA) icu-build.args icu-native.args if build all-local: icubuild +SUBDIRS += icu-incl else !build all-local: icu-build/Makefile endif !build -icu-build/Makefile: $(noinst_DATA) +if cross +ICU_NATIVE = icu-native/config/icucross.mk +endif cross + +icu-build/Makefile: $(ICUSUB_AUX) icu-build.args $(ICU_NATIVE) $(mkdir_p) icu-build - @cmd=`cat $(ICUSUB_AUX)`; \ - cmd="$$cmd --enable-static --disable-shared --disable-extras --disable-samples --disable-tests"; \ + @cmd=`cat $(ICUSUB_AUX) icu-build.args | sed 's,ICUSUBDIR,$(ICU_TREE),g'`; \ (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: $(ICUSUB_AUX) icu-native.args + $(mkdir_p) icu-native + @cmd=`cat $(ICUSUB_AUX) icu-native.args | sed 's,ICUSUBDIR,$(ICU_TREE),g'`; \ + (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 \ @@ -49,13 +81,12 @@ check-makeflags: done distclean-local: - rm -rf icu-build + rm -rf icu-build icu-native icusubdir-configure: - @echo "make in ./dummy failed to create the file $@" - exit 1 + cd dummy && $(MAKE) $(AM_MAKEFLAGS) ../$@ -icusubdir-conf.args: +icusubdir-conf.args icu-build.args icu-native.args: @echo "configure in ./dummy failed to create the file $@" exit 1 |