Skip to content

Instantly share code, notes, and snippets.

@abn
Created June 25, 2020 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abn/4daebe22d5ac5cd1a265e944b90b59fe to your computer and use it in GitHub Desktop.
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
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