summaryrefslogtreecommitdiff
path: root/makext.mk
diff options
context:
space:
mode:
Diffstat (limited to 'makext.mk')
-rw-r--r--makext.mk7
1 files changed, 7 insertions, 0 deletions
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