]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - makefile
Factor out srcdir in the makefile.
[dunshire.git] / makefile
index 2ef17ef883fcd4175057c6e1a0481354e44d01d8..e619d42b0c5ac2d09e3e62ce10f752df961d60de 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,11 +1,16 @@
+SRCDIR := src/dunshire
+
 .PHONY: check
 check:
        python test/suite.py
 
 .PHONY: lint
 lint:
-       PYTHONPATH="src/dunshire" pylint --reports=n src/dunshire/*.py
+       PYTHONPATH="$(SRCDIR)" pylint \
+               --reports=n \
+               --good-names='b,c,h,A,C,G,_K,_L' \
+               $(SRCDIR)/*.py
 
 .PHONY: clean
 clean:
-       rm -r __pycache__
+       rm -rf $(SRCDIR)/__pycache__