Fix indents in makefile.
This commit is contained in:
parent
1c76aa3e23
commit
ac424d6a27
3
.gitignore
vendored
3
.gitignore
vendored
@ -6,4 +6,5 @@ __pycache__
|
||||
brewery.sqlite
|
||||
media
|
||||
secrets.json
|
||||
.env
|
||||
.env
|
||||
tags
|
||||
|
18
Makefile
18
Makefile
@ -10,24 +10,24 @@ PYFILES := $(filter-out .%,$(shell find $(SOURCEDIR) -name '*.py'))
|
||||
|
||||
|
||||
venv/touchfile: requirements.txt
|
||||
test -d $(VENV) || virtualenv $(VENV)
|
||||
touch $(VENV)/touchfile
|
||||
test -d $(VENV) || virtualenv $(VENV)
|
||||
touch $(VENV)/touchfile
|
||||
|
||||
.PHONY: venv
|
||||
venv: $(VENV)/touchfile ## Make a new virtual environment
|
||||
python3 -m venv $(VENV) && source $(BIN)/activate
|
||||
python3 -m venv $(VENV) && source $(BIN)/activate
|
||||
|
||||
.PHONY: install
|
||||
install: venv ## Make venv and install requirements
|
||||
$(BIN)/pip install --upgrade -r requirements.txt
|
||||
$(BIN)/pip install --upgrade -r requirements.txt
|
||||
|
||||
migrate: ## Make and run migrations
|
||||
$(PYTHON) manage.py makemigrations
|
||||
$(PYTHON) manage.py migrate
|
||||
$(PYTHON) manage.py makemigrations
|
||||
$(PYTHON) manage.py migrate
|
||||
|
||||
.PHONY: test
|
||||
test: ## Run tests
|
||||
$(PYTHON) manage.py test application --verbosity=0 --parallel --failfast
|
||||
$(PYTHON) manage.py test application --verbosity=0 --parallel --failfast
|
||||
|
||||
start: install migrate run
|
||||
|
||||
@ -40,9 +40,9 @@ deploy: $(PYFILES)
|
||||
update: pull install deploy
|
||||
|
||||
clean:
|
||||
find -iname "*.pyc" -delete
|
||||
find -iname "*.pyc" -delete
|
||||
|
||||
help: ## Self-documented Makefile
|
||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||
|
||||
.PHONY: clean clean pull deploy update
|
||||
.PHONY: clean clean pull deploy update
|
||||
|
Loading…
Reference in New Issue
Block a user