mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 12:41:49 +02:00
Improve the Makefile
To make sure calling for "make serve" works straight away, the dependencies are automatically prepared. A "make clean" has been added, to test this feature.
This commit is contained in:
parent
4f7587f6e2
commit
5e0fb23218
1 changed files with 5 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -8,7 +8,7 @@ INSTALL_STAMP = $(VENV)/.install.stamp
|
||||||
TEMPDIR := $(shell mktemp -d)
|
TEMPDIR := $(shell mktemp -d)
|
||||||
|
|
||||||
all: install
|
all: install
|
||||||
install: $(INSTALL_STAMP)
|
install: virtualenv $(INSTALL_STAMP)
|
||||||
$(INSTALL_STAMP):
|
$(INSTALL_STAMP):
|
||||||
$(VENV)/bin/pip install -U pip
|
$(VENV)/bin/pip install -U pip
|
||||||
$(VENV)/bin/pip install -r requirements.txt
|
$(VENV)/bin/pip install -r requirements.txt
|
||||||
|
@ -23,7 +23,7 @@ $(DEV_STAMP): $(PYTHON) dev-requirements.txt
|
||||||
$(VENV)/bin/pip install -Ur dev-requirements.txt
|
$(VENV)/bin/pip install -Ur dev-requirements.txt
|
||||||
touch $(DEV_STAMP)
|
touch $(DEV_STAMP)
|
||||||
|
|
||||||
serve: $(INSTALL_STAMP)
|
serve: install
|
||||||
cd budget; $(PYTHON) run.py
|
cd budget; $(PYTHON) run.py
|
||||||
|
|
||||||
test: $(DEV_STAMP)
|
test: $(DEV_STAMP)
|
||||||
|
@ -37,3 +37,6 @@ build-requirements:
|
||||||
$(TEMPDIR)/bin/pip install -U pip
|
$(TEMPDIR)/bin/pip install -U pip
|
||||||
$(TEMPDIR)/bin/pip install -Ue "."
|
$(TEMPDIR)/bin/pip install -Ue "."
|
||||||
$(TEMPDIR)/bin/pip freeze | grep -v -- '-e' > requirements.txt
|
$(TEMPDIR)/bin/pip freeze | grep -v -- '-e' > requirements.txt
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf .venv
|
||||||
|
|
Loading…
Reference in a new issue