#!/usr/bin/make -f # Environment/command line variables: # - ARGS # - EXEC_DIR # - CWD SHELL = bash -o pipefail export OUTPUT_DIR := $(realpath .) % : $(EXEC_PATH)/modules/% cd $(CWD) && '$<' $(ARGS) | tee -- '$@' include $(wildcard $(EXEC_PATH)/modules/*.mk)