From 712e5df429b7a93ecee52d9f7e7d76594122a516 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 12 May 2024 12:35:16 +0200 Subject: Added environmental variables from file loader extension --- makext.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'makext.mk') diff --git a/makext.mk b/makext.mk index 4c89377..1ade3fd 100644 --- a/makext.mk +++ b/makext.mk @@ -15,6 +15,13 @@ ifeq ($(OS),Windows_NT) $(error makext does not support Windows operating system) endif +# Load environmental files from `MEX_ENVIRONMENT`. By default GNU make +# loads what is already in `env`. This extends it to other files. +ifdef MEX_ENVIRONMENT +TEMP_ENV_FILES=$(shell echo $(MEX_ENVIRONMENT) | tr ',' ' ') +$(foreach file,$(TEMP_ENV_FILES),$(eval include $(file))) +endif + # Help extension that lists all the targets with descriptions # and adds description and license information if data provided. .PHONY: .help -- cgit v1.2.3