Skip to content

Commit

Permalink
Improvements to the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Crow committed Jan 23, 2025
1 parent b031b50 commit ce871d6
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ fix:
index:
$(EXEC_CMD) $(POETRY_CMD) python manage.py update_index

.PHONY: init
init:
$(EXEC_CMD) poetry install --no-root --without dev
.PHONY: first-deploy
first-deploy:
$(EXEC_CMD) $(POETRY_CMD) python manage.py migrate
make collectstatic
$(EXEC_CMD) $(POETRY_CMD) python manage.py set_config
Expand All @@ -58,22 +57,30 @@ init:
$(EXEC_CMD) $(POETRY_CMD) python manage.py import_page_templates
make index

.PHONY: init
init:
$(EXEC_CMD) poetry install --no-root --without dev
make first-deploy

.PHONY: init-dev
init-dev:
make init
$(EXEC_CMD) poetry install --no-root
make first-deploy
$(EXEC_CMD) $(POETRY_CMD) pre-commit install


.PHONY: update
update:
$(EXEC_CMD) poetry install --no-root --without dev
.PHONY: deploy
deploy:
$(EXEC_CMD) $(POETRY_CMD) python manage.py migrate
make collectstatic
$(EXEC_CMD) $(POETRY_CMD) python manage.py import_dsfr_pictograms
$(EXEC_CMD) $(POETRY_CMD) python manage.py import_page_templates
make index

.PHONY: update
update:
$(EXEC_CMD) poetry install --no-root --without dev
make deploy

.PHONY: demo
demo:
make init
Expand Down

0 comments on commit ce871d6

Please sign in to comment.