ci: Makefile cleanup

This commit is contained in:
Stefan Reimer 2022-11-22 16:05:30 +01:00
parent e1934a992b
commit 7890cfb794

View File

@ -11,9 +11,10 @@ CF_DIST := E1YFUJXMCXT2RN
BUILDER_RELEASE = $(shell echo $(BUILDER) | sed -e 's/-.*$$//') BUILDER_RELEASE = $(shell echo $(BUILDER) | sed -e 's/-.*$$//')
RELEASE := $(shell echo $(BUILDER_RELEASE) | sed -e 's/\.[0-9]$$//') RELEASE := $(shell echo $(BUILDER_RELEASE) | sed -e 's/\.[0-9]$$//')
.PHONY: aarch64-toolchain packages distfiles aports apk
aarch64-toolchain: aarch64-toolchain:
@podman run -it --rm \ podman run -it --rm \
-v ${PWD}/distfiles:/var/cache/distfiles \ -v ${PWD}/distfiles:/var/cache/distfiles \
-v ${PWD}/packages:/home/alpine/packages \ -v ${PWD}/packages:/home/alpine/packages \
-v ${PWD}/aports:/home/alpine/aports \ -v ${PWD}/aports:/home/alpine/aports \
@ -28,8 +29,8 @@ distfiles:
mkdir -p distfiles mkdir -p distfiles
aports: aports:
@[ -d aports/.git ] && { cd aports; git pull origin $(BUILDER_RELEASE); } [ -d aports/.git ] && { cd aports; git pull origin $(BUILDER_RELEASE); }
@[ -d aports/.git ] || { git clone https://gitlab.alpinelinux.org/alpine/aports.git && \ [ -d aports/.git ] || { git clone https://gitlab.alpinelinux.org/alpine/aports.git && \
cd aports && git checkout $(BUILDER_RELEASE); } cd aports && git checkout $(BUILDER_RELEASE); }
apk: packages distfiles apk: packages distfiles