-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
66 lines (56 loc) · 1.4 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
TARGETS = \
alpine \
amazon-2-amd64 \
amazon-2023-amd64 \
arch \
centos-stream-9-amd64 \
debian-12-bookworm-x86 \
debian-12-bookworm-amd64 \
fedora-40-amd64 \
fedora-41-amd64 \
gentoo \
manylinux2014-wheel-build \
manylinux_2_28-wheel-build \
ubuntu-22.04-jammy-amd64 \
ubuntu-24.04-noble-amd64 \
ubuntu-22.04-jammy-amd64-valgrind \
ubuntu-22.04-jammy-arm64v8 \
ubuntu-24.04-noble-ppc64le \
ubuntu-24.04-noble-s390x
BUILDDIRS = $(TARGETS:%=build-%)
PUSHDIRS = $(TARGETS:%=push-%)
PULLDIRS = $(TARGETS:%=pull-%)
UPDATEDIRS = $(TARGETS:%=update-%)
CLEANDIRS = $(TARGETS:%=clean-%)
TESTDIRS = $(TARGETS:%=test-%)
.PHONY: build update push test $(TARGETS)
.PHONY: subdirs $(BUILDDIRS)
.PHONY: subdirs $(PUSHDIRS)
.PHONY: subdirs $(PULLDIRS)
.PHONY: subdirs $(UPDATEDIRS)
.PHONY: subdirs $(CLEANDIRS)
.PHONY: subdirs $(TESTDIRS)
# these are parallelizable, but mind the load
build: $(BUILDDIRS)
$(BUILDDIRS):
$(MAKE) -C $(@:build-%=%) build
push: $(PUSHDIRS)
$(PUSHDIRS):
$(MAKE) -C $(@:push-%=%) push
pull: $(PULLDIRS)
$(PULLDIRS):
$(MAKE) -C $(@:pull-%=%) pull
update: $(UPDATEDIRS)
$(UPDATEDIRS):
$(MAKE) -C $(@:update-%=%) update
clean: $(CLEANDIRS)
$(CLEANDIRS):
$(MAKE) -C $(@:clean-%=%) clean
# This has to be sequential due to the shared
# pillow data/build directory
test: $(TESTDIRS)
$(TESTDIRS):
$(MAKE) -C $(@:test-%=%) test
# individual -- make alpine will do one.
$(TARGETS):
$(MAKE) -C $@