summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2008-03-28 13:38:15 -0400
committerAdrian Likins <alikins@redhat.com>2008-03-28 13:38:15 -0400
commit8bf00319db57ecfed8477f97e673248ff3d9e44a (patch)
treef47ed6c5ba1598ed144c1d27ce8d15564c2f4800 /examples
parent726da9f9383feb41bfd3d082db614a50b878ec53 (diff)
downloadthird_party-func-8bf00319db57ecfed8477f97e673248ff3d9e44a.tar.gz
third_party-func-8bf00319db57ecfed8477f97e673248ff3d9e44a.tar.xz
third_party-func-8bf00319db57ecfed8477f97e673248ff3d9e44a.zip
add Makefile to examples/ so "make clean" works
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/Makefile20
1 files changed, 20 insertions, 0 deletions
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