summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/Makefile.am
blob: 1798c7ba48d1fa3ace66a633538fe64486e3e933 (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
## Proxy Makefile.am to build icu-xetex for TeX Live.
##
##   Copyright (C) 2009 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

SUBDIRS = dummy

## We want to re-distribute the whole icu-xetex source tree.
EXTRA_DIST = icu-xetex

## in case of an SVN repository
dist-hook:
	rm -rf `find $(distdir)/icu-xetex -name .svn`

ICUSUB_AUX = icusubdir-configure icusubdir-conf.args
noinst_DATA = $(ICUSUB_AUX)

DISTCLEANFILES = $(noinst_DATA)

if build
all-local: icubuild
else !build
all-local: icu-build/Makefile
endif !build

icu-build/Makefile: $(noinst_DATA)
	$(mkdir_p) icu-build
	@cmd=`cat $(ICUSUB_AUX)`; \
	cmd="$$cmd --enable-static --disable-shared --disable-extras --disable-samples --disable-tests"; \
	(cd icu-build && echo "=== configuring in icu-build (`pwd`)" && \
	  echo "make: running $(SHELL) $$cmd" && \
	  eval $(SHELL) $$cmd)

.PHONY: icubuild
icubuild: icu-build/Makefile
	cd icu-build && $(MAKE) $(AM_MAKEFLAGS) all

distclean-local:
	rm -rf icu-build

icusubdir-configure:
	@echo "make in ./dummy failed to create the file $@"
	exit 1

icusubdir-conf.args:
	@echo "configure in ./dummy failed to create the file $@"
	exit 1