blob: 8b485fba89939010be4340e13743fd4073a37cd8 [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001ANITA_TAGS := \
Nico Huber5e8b3392024-04-21 13:33:56 +02002 anita\:10.0-amd64 anita\:10.0-i386 \
Nico Huberb50d73d2023-03-01 17:25:12 +00003 anita\:9.3-amd64 anita\:9.3-i386 anita\:9.3-sparc64 \
Nico Huberc0b52db2022-12-15 12:42:32 +00004 anita\:8.2-amd64 anita\:8.2-i386 \
Nico Huberc0b52db2022-12-15 12:42:32 +00005
6MULTIARCH_TAGS := \
Nico Huberc0b52db2022-12-15 12:42:32 +00007 $(foreach a,x86_64 aarch64, \
Nico Huberc0b52db2022-12-15 12:42:32 +00008 $(foreach v,34 33 32 31 30 29, \
9 fedora\:$(v)-$(a))) \
Nico Huber1457cc62024-11-09 22:49:59 +010010 $(foreach a,ppc64le, \
11 $(foreach v,34 33 29, \
12 fedora\:$(v)-$(a))) \
13 $(foreach a,s390x, \
14 $(foreach v,34 33 32 31 29, \
15 fedora\:$(v)-$(a))) \
Nico Huberc0b52db2022-12-15 12:42:32 +000016 $(foreach a,ppc64el armhf mipsel amd64 i386, \
Nico Huber1457cc62024-11-09 22:49:59 +010017 $(foreach v,bullseye buster, \
Nico Huberc0b52db2022-12-15 12:42:32 +000018 debian-debootstrap\:$(a)-$(v))) \
19 $(foreach a,arm64 mips, \
Nico Huber1457cc62024-11-09 22:49:59 +010020 debian-debootstrap\:$(a)-buster) \
Nico Huberc0b52db2022-12-15 12:42:32 +000021 $(foreach a,ppc64el arm64 armhf amd64, \
Nico Huber1457cc62024-11-09 22:49:59 +010022 $(foreach v,jammy focal, \
Nico Huberc0b52db2022-12-15 12:42:32 +000023 ubuntu-debootstrap\:$(a)-$(v))) \
Nico Huberc0b52db2022-12-15 12:42:32 +000024 $(foreach a,aarch64 armhf amd64 i386, \
Nico Huber1457cc62024-11-09 22:49:59 +010025 $(foreach v,v3.14 v3.13 v3.12 v3.11 v3.10 v3.9 v3.8, \
Nico Huberc0b52db2022-12-15 12:42:32 +000026 alpine\:$(a)-$(v))) \
27
Nico Huber59848a92023-03-04 00:41:18 +000028ALMALINUX_TAGS := \
29 $(foreach a,amd64 arm64v8 ppc64le s390x, \
30 $(foreach v,8 9, \
31 $(a)/almalinux\:$(v)))
32
Nico Huberf137f442023-03-03 17:12:14 +000033OFFICIAL_TAGS := \
Nico Huber2044af02023-03-04 00:40:47 +000034 $(foreach a,ppc64le s390x arm64v8 amd64, \
Nico Huberb8b35932024-04-21 13:37:48 +020035 $(foreach v,40 39 38 37 36 35, \
Nico Huber2044af02023-03-04 00:40:47 +000036 $(a)/fedora\:$(v))) \
Nico Huber494561a2023-03-03 17:12:32 +000037 $(foreach a,ppc64le mips64le s390x arm64v8 arm32v7 arm32v5 amd64 i386, \
38 $(foreach v,bookworm, \
39 $(a)/debian\:$(v))) \
Nico Huber1faffa52024-11-09 22:44:53 +010040 $(foreach a,amd64 arm32v7 arm64v8 ppc64le s390x, \
Nico Huber7b05f092024-04-21 13:38:41 +020041 $(foreach v,noble, \
42 $(a)/ubuntu\:$(v))) \
Nico Huberf137f442023-03-03 17:12:14 +000043 $(foreach a,ppc64le s390x arm64v8 arm32v7 arm32v6 amd64 i386, \
Nico Huber82794572024-04-21 14:14:53 +020044 $(foreach v,3.19 3.18 3.17 3.16 3.15, \
Nico Huberf137f442023-03-03 17:12:14 +000045 $(a)/alpine\:$(v))) \
Nico Huber59848a92023-03-04 00:41:18 +000046 $(ALMALINUX_TAGS)
Nico Huberf137f442023-03-03 17:12:14 +000047
Nico Huberc0b52db2022-12-15 12:42:32 +000048OTHER_TAGS := djgpp\:6.1.0
49
Nico Huber05f0f7c2023-03-03 17:08:16 +000050ALL_TAGS := $(ANITA_TAGS) $(MULTIARCH_TAGS) $(OFFICIAL_TAGS) $(OTHER_TAGS)
Nico Huberc0b52db2022-12-15 12:42:32 +000051
Nico Huber1457cc62024-11-09 22:49:59 +010052BROKEN_TAGS := arm64v8/fedora\:35
Nico Huberc0b52db2022-12-15 12:42:32 +000053
54WORKING_TAGS := $(filter-out $(BROKEN_TAGS),$(ALL_TAGS))
55
56arch_filter = $(sort \
57 $(foreach arch,$(1), \
Nico Huber05f0f7c2023-03-03 17:08:16 +000058 $(filter-out $(subst $(arch),,$(MULTIARCH_TAGS) $(OFFICIAL_TAGS)), \
59 $(MULTIARCH_TAGS) $(OFFICIAL_TAGS))))
Nico Huberc0b52db2022-12-15 12:42:32 +000060
61machine_map = \
62 $(if $(filter i386 i686 x86,$(1)),i386 x86, \
63 $(if $(filter x86_64,$(1)),amd64 i386 x86, \
64 $(if $(filter armv7l armv6l,$(1)),armhf, \
65 $(if $(filter aarch64,$(1)),aarch64 arm64, \
66 $(if $(filter ppc64le,$(1)),ppc64le ppc64el, \
67 $(if $(filter ppc,$(1)),powerpc, \
68 $(if $(filter mips,$(1)),mips mipsel, \
69 $(1))))))))
70
71NATIVE_TAGS := $(call arch_filter,$(call machine_map,$(shell uname -m)))
72
Nico Huber09289fb2024-11-09 22:56:25 +010073# for now, build all working targets by default
74DEFAULT_TAGS := $(WORKING_TAGS)
Nico Huberc0b52db2022-12-15 12:42:32 +000075
Nico Huberc0b52db2022-12-15 12:42:32 +000076default: $(DEFAULT_TAGS)
77
78native: $(NATIVE_TAGS)
79
80working: $(WORKING_TAGS)
81
82all: $(ALL_TAGS)
83
Nico Huberc0b52db2022-12-15 12:42:32 +000084show-default:
85 @printf "%s\n" $(DEFAULT_TAGS)
86
87show-native:
88 @printf "%s\n" $(NATIVE_TAGS)
89
90show-working:
91 @printf "%s\n" $(WORKING_TAGS)
92
93show-all:
94 @printf "%s\n" $(ALL_TAGS)
95
Nico Huber3127db12024-04-21 15:46:19 +020096.PHONY: default native all
97.PHONY: show-default show-native show-all
Nico Huberc0b52db2022-12-15 12:42:32 +000098.PHONY: $(ALL_TAGS)