Fix indents in makefile.

This commit is contained in:
Chris Giacofei 2024-06-03 13:06:21 -04:00
parent 1c76aa3e23
commit ac424d6a27
2 changed files with 11 additions and 10 deletions

3
.gitignore vendored
View File

@ -6,4 +6,5 @@ __pycache__
brewery.sqlite
media
secrets.json
.env
.env
tags

View File

@ -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