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 3ef979a commit 93038ff
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 build build-migrations migrate test
.PHONY: all env virtualenv install nopyc clean build build-migrations migrate test

SHELL := /usr/bin/env bash
MYPROJECT_VENV ?= .venv
Expand All @@ -24,6 +24,13 @@ install: env virtualenv
)
@$(PYTHON_BIN) -m pip install "heliumcli>=1.2.2" "ansible>=2.5"

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

clean: nopyc
rm -rf _build $(PLATFORM_VENV)

build: virtualenv
@( \
source $(MYPROJECT_VENV)/bin/activate; \
Expand Down

0 comments on commit 93038ff

Please sign in to comment.