From d4888566737d0dd49b6fd05b4c0987e032ee0f12 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Tue, 17 Oct 2023 09:51:25 +0300 Subject: [PATCH] feat(scripts): Export CaSILE's build dir for scripts that may use it outside of the project dir --- rules/rules.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules/rules.mk b/rules/rules.mk index 864b39fc..736caae0 100644 --- a/rules/rules.mk +++ b/rules/rules.mk @@ -161,6 +161,9 @@ export FONTCONFIG_FILE := $(shell $(_ENV) test -d "$(BUILDDIR)" || $(MKDIR_P) "$ # setpriv (which we do in Docker), so just keep it all local. export MAGICK_TEMPORARY_PATH := $(shell $(_ENV) test -d "$(BUILDDIR)" || $(MKDIR_P) "$(BUILDDIR)" && cd "$(BUILDDIR)" && pwd) +# For the benefit of scritps and other contexts outside of this Makefile scope... +export CASILE_BUILDDIR := $(realpath $(BUILDDIR)) + # Extensible list of files for git to ignore IGNORES += $(PROJECTCONFIGS) IGNORES += $(BUILDDIR)