Created
June 25, 2020 22:23
-
-
Save abn/4daebe22d5ac5cd1a265e944b90b59fe to your computer and use it in GitHub Desktop.
Makefile: Using a custom bashrc file for default shell used by all targets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | |
ROOT_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH))) | |
BASH_ENV := $(ROOT_DIR)/.bashrc | |
export BASH_ENV | |
SHELL := $(shell which bash) -e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment