Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 1 | ANITA_TAGS := \ |
Nico Huber | 5e8b339 | 2024-04-21 13:33:56 +0200 | [diff] [blame] | 2 | anita\:10.0-amd64 anita\:10.0-i386 \ |
Nico Huber | b50d73d | 2023-03-01 17:25:12 +0000 | [diff] [blame] | 3 | anita\:9.3-amd64 anita\:9.3-i386 anita\:9.3-sparc64 \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 4 | anita\:8.2-amd64 anita\:8.2-i386 \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 5 | |
| 6 | MULTIARCH_TAGS := \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 7 | $(foreach a,x86_64 aarch64, \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 8 | $(foreach v,34 33 32 31 30 29, \ |
| 9 | fedora\:$(v)-$(a))) \ |
Nico Huber | 1457cc6 | 2024-11-09 22:49:59 +0100 | [diff] [blame] | 10 | $(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 Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 16 | $(foreach a,ppc64el armhf mipsel amd64 i386, \ |
Nico Huber | 1457cc6 | 2024-11-09 22:49:59 +0100 | [diff] [blame] | 17 | $(foreach v,bullseye buster, \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 18 | debian-debootstrap\:$(a)-$(v))) \ |
| 19 | $(foreach a,arm64 mips, \ |
Nico Huber | 1457cc6 | 2024-11-09 22:49:59 +0100 | [diff] [blame] | 20 | debian-debootstrap\:$(a)-buster) \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 21 | $(foreach a,ppc64el arm64 armhf amd64, \ |
Nico Huber | 1457cc6 | 2024-11-09 22:49:59 +0100 | [diff] [blame] | 22 | $(foreach v,jammy focal, \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 23 | ubuntu-debootstrap\:$(a)-$(v))) \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 24 | $(foreach a,aarch64 armhf amd64 i386, \ |
Nico Huber | 1457cc6 | 2024-11-09 22:49:59 +0100 | [diff] [blame] | 25 | $(foreach v,v3.14 v3.13 v3.12 v3.11 v3.10 v3.9 v3.8, \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 26 | alpine\:$(a)-$(v))) \ |
| 27 | |
Nico Huber | 59848a9 | 2023-03-04 00:41:18 +0000 | [diff] [blame] | 28 | ALMALINUX_TAGS := \ |
| 29 | $(foreach a,amd64 arm64v8 ppc64le s390x, \ |
| 30 | $(foreach v,8 9, \ |
| 31 | $(a)/almalinux\:$(v))) |
| 32 | |
Nico Huber | f137f44 | 2023-03-03 17:12:14 +0000 | [diff] [blame] | 33 | OFFICIAL_TAGS := \ |
Nico Huber | 2044af0 | 2023-03-04 00:40:47 +0000 | [diff] [blame] | 34 | $(foreach a,ppc64le s390x arm64v8 amd64, \ |
Nico Huber | b8b3593 | 2024-04-21 13:37:48 +0200 | [diff] [blame] | 35 | $(foreach v,40 39 38 37 36 35, \ |
Nico Huber | 2044af0 | 2023-03-04 00:40:47 +0000 | [diff] [blame] | 36 | $(a)/fedora\:$(v))) \ |
Nico Huber | 494561a | 2023-03-03 17:12:32 +0000 | [diff] [blame] | 37 | $(foreach a,ppc64le mips64le s390x arm64v8 arm32v7 arm32v5 amd64 i386, \ |
| 38 | $(foreach v,bookworm, \ |
| 39 | $(a)/debian\:$(v))) \ |
Nico Huber | 1faffa5 | 2024-11-09 22:44:53 +0100 | [diff] [blame] | 40 | $(foreach a,amd64 arm32v7 arm64v8 ppc64le s390x, \ |
Nico Huber | 7b05f09 | 2024-04-21 13:38:41 +0200 | [diff] [blame] | 41 | $(foreach v,noble, \ |
| 42 | $(a)/ubuntu\:$(v))) \ |
Nico Huber | f137f44 | 2023-03-03 17:12:14 +0000 | [diff] [blame] | 43 | $(foreach a,ppc64le s390x arm64v8 arm32v7 arm32v6 amd64 i386, \ |
Nico Huber | 8279457 | 2024-04-21 14:14:53 +0200 | [diff] [blame] | 44 | $(foreach v,3.19 3.18 3.17 3.16 3.15, \ |
Nico Huber | f137f44 | 2023-03-03 17:12:14 +0000 | [diff] [blame] | 45 | $(a)/alpine\:$(v))) \ |
Nico Huber | 59848a9 | 2023-03-04 00:41:18 +0000 | [diff] [blame] | 46 | $(ALMALINUX_TAGS) |
Nico Huber | f137f44 | 2023-03-03 17:12:14 +0000 | [diff] [blame] | 47 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 48 | OTHER_TAGS := djgpp\:6.1.0 |
| 49 | |
Nico Huber | 05f0f7c | 2023-03-03 17:08:16 +0000 | [diff] [blame] | 50 | ALL_TAGS := $(ANITA_TAGS) $(MULTIARCH_TAGS) $(OFFICIAL_TAGS) $(OTHER_TAGS) |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 51 | |
Nico Huber | 1457cc6 | 2024-11-09 22:49:59 +0100 | [diff] [blame] | 52 | BROKEN_TAGS := arm64v8/fedora\:35 |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 53 | |
| 54 | WORKING_TAGS := $(filter-out $(BROKEN_TAGS),$(ALL_TAGS)) |
| 55 | |
| 56 | arch_filter = $(sort \ |
| 57 | $(foreach arch,$(1), \ |
Nico Huber | efad610 | 2024-11-10 15:07:16 +0100 | [diff] [blame] | 58 | $(filter-out $(subst $(arch),,$(ALL_TAGS)), $(ALL_TAGS)))) |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 59 | |
| 60 | machine_map = \ |
| 61 | $(if $(filter i386 i686 x86,$(1)),i386 x86, \ |
| 62 | $(if $(filter x86_64,$(1)),amd64 i386 x86, \ |
| 63 | $(if $(filter armv7l armv6l,$(1)),armhf, \ |
| 64 | $(if $(filter aarch64,$(1)),aarch64 arm64, \ |
| 65 | $(if $(filter ppc64le,$(1)),ppc64le ppc64el, \ |
| 66 | $(if $(filter ppc,$(1)),powerpc, \ |
| 67 | $(if $(filter mips,$(1)),mips mipsel, \ |
| 68 | $(1)))))))) |
| 69 | |
| 70 | NATIVE_TAGS := $(call arch_filter,$(call machine_map,$(shell uname -m))) |
| 71 | |
Nico Huber | 09289fb | 2024-11-09 22:56:25 +0100 | [diff] [blame] | 72 | # for now, build all working targets by default |
| 73 | DEFAULT_TAGS := $(WORKING_TAGS) |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 74 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 75 | default: $(DEFAULT_TAGS) |
| 76 | |
| 77 | native: $(NATIVE_TAGS) |
| 78 | |
| 79 | working: $(WORKING_TAGS) |
| 80 | |
| 81 | all: $(ALL_TAGS) |
| 82 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 83 | show-default: |
| 84 | @printf "%s\n" $(DEFAULT_TAGS) |
| 85 | |
| 86 | show-native: |
| 87 | @printf "%s\n" $(NATIVE_TAGS) |
| 88 | |
| 89 | show-working: |
| 90 | @printf "%s\n" $(WORKING_TAGS) |
| 91 | |
| 92 | show-all: |
| 93 | @printf "%s\n" $(ALL_TAGS) |
| 94 | |
Nico Huber | 3127db1 | 2024-04-21 15:46:19 +0200 | [diff] [blame] | 95 | .PHONY: default native all |
| 96 | .PHONY: show-default show-native show-all |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 97 | .PHONY: $(ALL_TAGS) |