Skip to content

Instantly share code, notes, and snippets.

@estysdesu
Last active July 31, 2019 11:28
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 estysdesu/78811f180674ca889b79c92d72421dc2 to your computer and use it in GitHub Desktop.
Save estysdesu/78811f180674ca889b79c92d72421dc2 to your computer and use it in GitHub Desktop.
[Make: set shell and brace expansion] #gnu #make #makefile #braces #expansion #sh
# `bin/sh` may not point to bash; setting `SHELL:=$(shell which bash)` ensures brace expansion (bashism) will work
SHELL:=$(shell which bash)
DIR_:=$(shell pwd)
.PHONY: clean
clean:
@bash -c "rm -rf $(DIR_)/{.vscode,venv,__pycache__}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment