Skip to content

Commit

Permalink
Add cleanup to Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Feb 6, 2024
1 parent 2339762 commit 9b95d49
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all env virtualenv install install-dev build build-migrations migrate test
.PHONY: all env virtualenv install install-dev nopyc clean build build-migrations migrate test

SHELL := /usr/bin/env bash
PYTHON_BIN ?= python
Expand Down Expand Up @@ -27,6 +27,13 @@ install-dev: install
python -m pip install -r requirements-dev.txt; \
)

nopyc:
find . -name '*.pyc' | xargs rm -f || true
find . -name __pycache__ | xargs rm -rf || true

clean: nopyc
rm -rf _build $({%PROJECT_ID_UPPER%}_VENV)

build: virtualenv
( \
source $({%PROJECT_ID_UPPER%}_VENV)/bin/activate; \
Expand Down

0 comments on commit 9b95d49

Please sign in to comment.