Created
July 25, 2014 21:32
-
-
Save eentzel/e961de73270a0ed0383d to your computer and use it in GitHub Desktop.
Makefile for python/virtualenv
This file contains 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
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