diff options
author | Adrian Likins <alikins@redhat.com> | 2008-03-28 13:38:15 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2008-03-28 13:38:15 -0400 |
commit | 8bf00319db57ecfed8477f97e673248ff3d9e44a (patch) | |
tree | f47ed6c5ba1598ed144c1d27ce8d15564c2f4800 | |
parent | 726da9f9383feb41bfd3d082db614a50b878ec53 (diff) | |
download | func-8bf00319db57ecfed8477f97e673248ff3d9e44a.tar.gz func-8bf00319db57ecfed8477f97e673248ff3d9e44a.tar.xz func-8bf00319db57ecfed8477f97e673248ff3d9e44a.zip |
add Makefile to examples/ so "make clean" works
-rwxr-xr-x | Makefile | 4 | ||||
-rwxr-xr-x | examples/Makefile | 20 |
2 files changed, 22 insertions, 2 deletions
@@ -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 |