Skip to content

Commit df10713

Browse files
committed
Update Makefile with recipes for initializing and maintaining the project directory
Add `init` and `clean-venv` make recipes. Remove `clean-dist` from batch `clean` operation, and create a separate `clean-all` make recipes.
1 parent 37dc832 commit df10713

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

Makefile

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ docs : docs/Makefile
1414
make html
1515

1616

17+
# Local project directory and environment management recipes
18+
.PHONY : init
19+
init : requirements.txt
20+
pip install -r requirements.txt
21+
22+
1723
# Local testing recipes
1824
.PHONY : tests
1925
tests: toxtest lint ;
@@ -35,11 +41,7 @@ lint :
3541

3642
# Cleaning recipes
3743
.PHONY : clean
38-
clean : cleanbuild cleandocs cleanpytest cleantox cleandist ;
39-
40-
.PHONY : cleandist
41-
cleandist :
42-
rm -rf ./dist/*
44+
clean : cleanbuild cleandocs cleanpytest cleantox ;
4345

4446
.PHONY : cleanbuild
4547
cleanbuild :
@@ -56,3 +58,14 @@ cleantox : cleanpytest
5658
.PHONY : cleanpytest
5759
cleanpytest :
5860
rm -rf ./.cache/
61+
62+
.PHONY : clean-all
63+
clean-all : clean clean-dist ;
64+
65+
.PHONY : clean-dist
66+
cleandist :
67+
rm -rf ./dist/*
68+
69+
.PHONY : clean-venv
70+
clean-venv :
71+
pip freeze | grep -v "^-e" | xargs pip uninstall -y

0 commit comments

Comments
 (0)