summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/Makefile.am
blob: 78f055bdf7340dc377dde05489ee0673b8523e20 (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
## 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 check-makeflags
icubuild: icu-build/Makefile check-makeflags
	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-xetex build systems disallows \`make $$f'."; \
	      exit 1;; \
	  esac; \
	done

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