Skip to content

Instantly share code, notes, and snippets.

@tobyontour
Created October 25, 2013 15:49
Show Gist options
  • Select an option

  • Save tobyontour/7156857 to your computer and use it in GitHub Desktop.

Select an option

Save tobyontour/7156857 to your computer and use it in GitHub Desktop.
Check that you're in a python virtualenv before running targets in a Makefile
coverage: checkvenv
coverage run manage.py test django_project ; coverage html
checkvenv:
@[ -z "$(VIRTUAL_ENV)" ] && (echo "Not in virtualenv"; false) || true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment