summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xMakefile4
-rwxr-xr-xexamples/Makefile20
2 files changed, 22 insertions, 2 deletions
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