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 65010b0 commit 2e676a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all env virtualenv install test run-devserver
.PHONY: all env virtualenv install nopyc clean test run-devserver

SHELL := /usr/bin/env bash

Expand All @@ -21,6 +21,13 @@ install: env virtualenv
python -m pip install -r requirements.txt -r requirements-dev.txt; \
)

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

clean: nopyc
rm -rf _build .venv

test: env virtualenv
@( \
source .venv/bin/activate; \
Expand Down

0 comments on commit 2e676a8

Please sign in to comment.