Pylint target files as well.
[riscv-tests.git] / debug / Makefile
index c5ea9918a858b60543b97b6010e8aeb071949d80..90ee25c6720e369953e5f7636b74f05065687c43 100644 (file)
@@ -9,7 +9,7 @@ default: spike$(XLEN).log
 all:   pylint spike32.log spike64.log
 
 pylint:
-       pylint --rcfile=pylint.rc *.py
+       pylint --rcfile=pylint.rc `git ls-files '*.py'`
 
 %.log:
        $(GDBSERVER_PY) \
@@ -20,4 +20,4 @@ pylint:
            | tee $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
 
 clean:
-       rm -f *.log *.pyc
+       rm -f spike32.log spike64.log *.pyc