improve test and clean targets in Makefiles

This commit is contained in:
Yuming Zhu 2017-11-30 09:47:32 +00:00 committed by Tomas Kopecek
parent aa48b87c12
commit 7a6ebc851f
13 changed files with 39 additions and 9 deletions

View file

@ -21,7 +21,8 @@ _default:
@echo "nothing to make. try make install"
clean:
rm -f *.o *.so *.pyc *.pyo *~
find . -name "__pycache__" -exec rm -rf {} \; ||:
find . -name "*.pyc" -exec rm -f {} \;
install:
@if [ "$(DESTDIR)" = "" ]; then \