1PREFIX:=$(shell pwd)/install
2MAKEFLAGS=--no-print-directory
3
4all:
5	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp MAKETYPE="Unix Makefiles" all
6
7install: all
8	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp MAKETYPE="Unix Makefiles" install
9
10test:
11	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp MAKETYPE="Unix Makefiles" test
12
13run-mats:
14	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp run-mats
15
16e2etest:
17	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp e2etest
18
19e2eviewtests:
20	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp e2eviewtests
21
22analyze:
23	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp MAKETYPE="Unix Makefiles" $@
24
25clean:
26	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp RM=rm RMOPTS=-rf clean
27
28clean-xfd:
29	@$(MAKE) -f Makefile PREFIX="$(PREFIX)" CHMODCMD="chmod u+w" CP=cp RM=rm RMOPTS=-rf clean-xfd
30
31clean-xfd-hard: clean-xfd
32
33clean-all: clean-xfd
34
35ICU_OPT=
36UNAME := $(shell uname -s)
37ifeq ($(UNAME),Darwin)
38    # MB-11442
39    ICU_OPT=-mmacosx-version-min=10.7
40endif
41
42icu4c/source/Makefile:
43	(cd icu4c/source && \
44	CFLAGS=$(ICU_OPT) CXXFLAGS=$(ICU_OPT) LDFLAGS=$(ICU_OPT) \
45	  ./configure "--prefix=$(PREFIX)")
46
47make-install-icu4c: icu4c/source/Makefile
48	$(MAKE) -C icu4c/source install
49
50make-install-couchdb-deps: make-install-icu4c
51