forked from unicode-org/icu-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
85 lines (68 loc) · 2.23 KB
/
Makefile
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
79
80
81
82
83
# © 2016 and later: Unicode, Inc. and others.
# License & terms of use: http://www.unicode.org/copyright.html
DIRS=tmp src tmp/.ccache dist
DOCKER_COMPOSE=docker-compose
ICU_REPO=http://source.icu-project.org/repos/icu/trunk
BINPATH=/src/bin/
DISTROS=$(shell cd dockerfiles;ls)
DISTROS_SMALL=ubuntu fedora
SRC=src/icu
REV:=$(shell (cd $(SRC) && (git describe --tags --exact-match 2>/dev/null || git rev-parse --short HEAD)) || echo 'unknown')
all: dirs src/icu
#src/icu: src
# if [ ! -f src/icu ]; then do cd src ; svn co $(ICU_REPO) icu; done
dirs:
mkdir -p $(DIRS) tmp/.ccache
chmod a+rwxt tmp/.ccache dist
chmod -R o+rX src
dbuild: docker-compose.yml
$(DOCKER_COMPOSE) build
build-all: all
for distro in $(DISTROS); do \
echo $$distro ; \
( $(DOCKER_COMPOSE) run $$distro bash $(BINPATH)/build.sh || exit 1); \
done
echo all OK
check-all: all
for distro in $(DISTROS); do \
echo $$distro ; \
rm -f $$distro.fail ; \
( $(DOCKER_COMPOSE) run $$distro bash $(BINPATH)/check.sh || (>$$distro.fail; exit 1)) >&1 | tee $$distro.out; \
done
echo all OK
check-some: all
for distro in $(DISTROS_SMALL); do \
echo $$distro ; \
rm -f $$distro.fail ; \
( $(DOCKER_COMPOSE) run $$distro bash $(BINPATH)/check.sh || (>$$distro.fail; exit 1)) >&1 | tee $$distro.out; \
done
echo all OK
dist-all: all
for distro in $(DISTROS); do \
echo $$distro ; \
( $(DOCKER_COMPOSE) run $$distro env REV=$(REV) WHAT=$$distro $(BINPATH)/makedist.sh $$distro || exit 1); \
done
echo all OK
dist-some: all
for distro in $(DISTROS_SMALL); do \
echo $$distro ; \
( $(DOCKER_COMPOSE) run $$distro env REV=$(REV) WHAT=$$distro $(BINPATH)/makedist.sh $$distro || exit 1); \
done
echo all OK
dist: sdist dist-some
sdist: all
for distro in $(firstword $(DISTROS_SMALL)); do \
echo $$distro ; \
( $(DOCKER_COMPOSE) run $$distro env REV=$(REV) WHAT=$$distro $(BINPATH)makesdoc.sh $$distro || exit 1); \
done
echo all OK
perf-all: all
for distro in $(DISTROS); do \
echo $$distro ; \
( $(DOCKER_COMPOSE) run $$distro bash $(BINPATH)/perf.sh $$distro || exit 1); \
done
echo all OK
.PHONY: all dirs build-all dbuild
pretest-run.pl:
wget http://git.savannah.gnu.org/cgit/pretest.git/plain/pretest-run.pl
-include Makefile.local