Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from Kinto/fix-makefile
Browse files Browse the repository at this point in the history
Add missing parts from Makefile
  • Loading branch information
leplatrem authored May 22, 2017
2 parents 7feb6d8 + 4fae645 commit ead16e6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
VIRTUALENV = virtualenv
VENV := $(shell echo $${VIRTUAL_ENV-.venv})
DEV_STAMP = $(VENV)/.dev_env_installed.stamp
INSTALL_STAMP = $(VENV)/.install.stamp
PYTHON = $(VENV)/bin/python
TOX = $(VENV)/bin/tox
TEMPDIR := $(shell mktemp -d)
Expand All @@ -14,6 +16,17 @@ virtualenv: $(PYTHON)
$(PYTHON):
virtualenv $(VENV) --python=python3

install: $(INSTALL_STAMP)
$(INSTALL_STAMP): $(PYTHON) setup.py
$(VENV)/bin/pip install -U pip
$(VENV)/bin/pip install -Ue .
touch $(INSTALL_STAMP)

install-dev: $(INSTALL_STAMP) $(DEV_STAMP)
$(DEV_STAMP): $(PYTHON) dev-requirements.txt
$(VENV)/bin/pip install -r dev-requirements.txt
touch $(DEV_STAMP)

tox: $(TOX)
$(TOX): virtualenv
$(VENV)/bin/pip install tox
Expand Down

0 comments on commit ead16e6

Please sign in to comment.