X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=scripts%2FMakefile;fp=scripts%2FMakefile;h=a4cc7e1c6c18c069dfaa6040c32d1ed15d70a858;hp=0000000000000000000000000000000000000000;hb=697402da24ca930b3608359a61b9872fdddc62d9;hpb=ac3061bcffd2ea634596c188beaa13339e3fa24a diff --git a/scripts/Makefile b/scripts/Makefile new file mode 100755 index 0000000..a4cc7e1 --- /dev/null +++ b/scripts/Makefile @@ -0,0 +1,20 @@ + + +PYFILES = $(wildcard *.py) + +PYCHECKER = /usr/bin/pychecker +PYFLAKES = /usr/bin/pyflakes + +clean:: + @rm -fv *.pyc *~ .*~ *.pyo + @find . -name .\#\* -exec rm -fv {} \; + @rm -fv *.rpm + + +pychecker:: + @$(PYCHECKER) $(PYFILES) || exit 0 + +pyflakes:: +ifneq ($(PYFILES)x, x) + @$(PYFLAKES) $(PYFILES) || exit 0 +endif