]> gitweb.michael.orlitzky.com - dunshire.git/commitdiff
Factor out srcdir in the makefile.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 6 Oct 2016 18:55:38 +0000 (14:55 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 6 Oct 2016 18:55:38 +0000 (14:55 -0400)
makefile

index eb080e72dc6f67ccbf4a13422142c368f9d0012f..e619d42b0c5ac2d09e3e62ce10f752df961d60de 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,14 +1,16 @@
+SRCDIR := src/dunshire
+
 .PHONY: check
 check:
        python test/suite.py
 
 .PHONY: lint
 lint:
-       PYTHONPATH="src/dunshire" pylint \
+       PYTHONPATH="$(SRCDIR)" pylint \
                --reports=n \
                --good-names='b,c,h,A,C,G,_K,_L' \
-               src/dunshire/*.py
+               $(SRCDIR)/*.py
 
 .PHONY: clean
 clean:
-       rm -rf src/dunshire/__pycache__
+       rm -rf $(SRCDIR)/__pycache__