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 --- Makefile | 4 ++-- examples/Makefile | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 examples/Makefile diff --git a/Makefile b/Makefile index 187e7c9..c556886 100755 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ NEWRELEASE = $(shell echo $$(($(RELEASE) + 1))) MESSAGESPOT=po/messages.pot TOPDIR = $(shell pwd) -DIRS = func docs scripts test test/unittest -PYDIRS = func scripts +DIRS = func docs examples scripts test test/unittest +PYDIRS = func scripts examples EXAMPLEDIR = examples INITDIR = init-scripts 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