From ca0701a2fe6382a71fd18ca0f47ea056e76ced8a Mon Sep 17 00:00:00 2001 From: Philipp Stadler <a51820432@unet.univie.ac.at> Date: Mon, 15 Jul 2024 10:13:25 +0200 Subject: [PATCH] chore: remove download prefix and work with relative paths --- make/announce.mk | 2 +- make/defs.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/make/announce.mk b/make/announce.mk index fe3cfe5..336063c 100644 --- a/make/announce.mk +++ b/make/announce.mk @@ -10,6 +10,6 @@ $(ANNOUNCEMENT_FILE): $(ANNOUNCE) $(PYTHON_NEEDED) build/export_apkgs.py --out $@ \ --title '$(PACK_TITLE)' \ --repo $(GITLAB_REPO) \ - --releaseDir $(DOWNLOAD_PREFIX)$(RELEASE_DIR) \ + --releaseDir $(RELEASE_DIR) \ $(addprefix --apkg , \ $(patsubst %,'%',$(APKGS))) diff --git a/make/defs.mk b/make/defs.mk index 939cd31..ea8b0de 100644 --- a/make/defs.mk +++ b/make/defs.mk @@ -6,7 +6,8 @@ K := $(foreach exec,$(REQUIRED_ON_PATH), \ # root like in CI, otherwise all generated files are in artifacts/ # note that using . and ./ behave the same as the empty string and the filename # targets will not start with . -BUILD_PREFIX ?= $(PWD)/artifacts +BUILD_PREFIX ?= artifacts +# make empty or add trailing slash BUILD_PREFIX := $(and $(filter-out . ./,$(BUILD_PREFIX)),$(BUILD_PREFIX)/) # some build subprocesses need this, e.g. the JS proxy for parcel needs to # know where to load the chardata from -- GitLab