Skip to content

Instantly share code, notes, and snippets.

@lucaswiman
Created October 4, 2021 19:19
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 lucaswiman/e0befc2ff632912e69a724e1fbde73e2 to your computer and use it in GitHub Desktop.
Save lucaswiman/e0befc2ff632912e69a724e1fbde73e2 to your computer and use it in GitHub Desktop.
Simple makefile to build virtualenv and run some make targets in it
.venv: requirements.txt
test -d ".venv" || python -m virtualenv .venv
.venv/bin/pip install -r ./requirements.txt
touch .venv
.PHONY: serve
serve: .venv
.venv/bin/python ./server.py
.PHONY: worker
worker: .venv
.venv/bin/python ./worker.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment