Skip to content

Commit 26b4a14

Browse files
author
Gonzalo Diaz
committed
[CONFIG] Makefile. clean action fixed (failed when files searched for deletion do not exist).
1 parent dfa6f88 commit 26b4a14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,15 @@ upgrade:
118118
${PACKAGE_TOOL} list --outdated | cut -f1 -d' ' | tr " " "\n" | awk '{if(NR>=3)print}' | cut -d' ' -f1 | xargs -n1 pip3 install -U
119119

120120
clean:
121-
${PACKAGE_TOOL} freeze > unins ; pip3 uninstall -y -r unins ; rm unins
121+
${PACKAGE_TOOL} freeze > unins ; ${PACKAGE_TOOL} uninstall -y -r unins ; rm unins
122122
rm -f .coverage
123123
rm -fr .pytest_cache
124124
rm -fr htmlcov
125125
rm -fr coverage
126126
rm -fr build
127-
find . -path "*/*.pyc" -delete -print
128-
find . -path "*/*.pyo" -delete -print
129-
find . -path "*/__pycache__" -type d -print -exec rm -fr {} ';'
127+
find . -path "*/*.pyc" -delete -print || true
128+
find . -path "*/*.pyo" -delete -print || true
129+
find . -path "*/__pycache__" -type d -print -exec rm -fr {} ';' || true
130130

131131
compose/build: env
132132
${DOCKER_COMPOSE} --profile lint build

0 commit comments

Comments
 (0)