Skip to content

Instantly share code, notes, and snippets.

@dapperfu
Created December 2, 2017 22:52
Show Gist options
  • Save dapperfu/fcfb3adbf2e5ff70eae44b04d30640ad to your computer and use it in GitHub Desktop.
Save dapperfu/fcfb3adbf2e5ff70eae44b04d30640ad to your computer and use it in GitHub Desktop.
venv makefile
.DEFAULT: null
.PHONY: null
null:
@echo No Default Target
VENV = .venv
.PHONY: venv
venv: ${VENV}
${VENV}:
@python3 -mvenv ${@}
.PHONY: pip
pip: ${VENV}
@${VENV}/bin/pip install -U pip setuptools wheel
@${VENV}/bin/pip install -U -r requirements.txt
.PHONY: clean
clean:
@git clean -fd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment