Skip to content

Instantly share code, notes, and snippets.

@eentzel
Created July 25, 2014 21:32
Show Gist options
  • Save eentzel/e961de73270a0ed0383d to your computer and use it in GitHub Desktop.
Save eentzel/e961de73270a0ed0383d to your computer and use it in GitHub Desktop.
Makefile for python/virtualenv
PY_SRC:=$(shell find . -not -ipath '*/env/*' -name '*.py')
.PHONY: clean
clean:
git clean -Xdf
env/bin/python:
virtualenv env
env: env/bin/python requirements.txt
. env/bin/activate && pip install -r requirements.txt
@touch env/tickle # updates mod date on env/
@rm env/tickle
TAGS: $(PY_SRC)
@etags $(PY_SRC)
@echo "updated $@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment