From 8bf00319db57ecfed8477f97e673248ff3d9e44a Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Fri, 28 Mar 2008 13:38:15 -0400 Subject: add Makefile to examples/ so "make clean" works --- examples/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 examples/Makefile (limited to 'examples') diff --git a/examples/Makefile b/examples/Makefile new file mode 100755 index 0000000..a4cc7e1 --- /dev/null +++ b/examples/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 -- cgit