Skip to content

Commit

Permalink
Adjustment to Makefile.
Browse files Browse the repository at this point in the history
- ignore .git and .venv during clean for speed
- use `$(MAKE)` instead of `make` for reliability
  • Loading branch information
aholmes committed Mar 15, 2024
1 parent 50d4d05 commit 5a2bdb1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,12 @@ publish-all : reset $(VENV)


clean-build :
find . -type d \( \
find . -type d \
\( \
-path ./$(VENV) \
-o -path ./.git \
\) -prune -false \
-o \( \
-name build \
-o -name dist \
-o -name __pycache__ \
Expand All @@ -233,8 +238,8 @@ clean : clean-build clean-test
@echo '\nDeactivate your venv with `deactivate`'

remake :
make clean
make
$(MAKE) clean
$(MAKE)

reset-check:
# https://stackoverflow.com/a/47839479
Expand Down

0 comments on commit 5a2bdb1

Please sign in to comment.