diff options
author | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-03-04 17:54:53 -0500 |
---|---|---|
committer | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-03-04 17:54:53 -0500 |
commit | 1afe5b3bd97d292ab4c024ee7c434d036cb5db9d (patch) | |
tree | 9d80a010e4162dfe0f0ed58df813435150c77e5c /func/overlord | |
parent | 33ce5a294db93d58374b964425e91e64ab2a1458 (diff) | |
download | third_party-func-1afe5b3bd97d292ab4c024ee7c434d036cb5db9d.tar.gz third_party-func-1afe5b3bd97d292ab4c024ee7c434d036cb5db9d.tar.xz third_party-func-1afe5b3bd97d292ab4c024ee7c434d036cb5db9d.zip |
make "make clean" even cleanier.
try to hit up more of the subdirs, etc, when running "make clean"
Diffstat (limited to 'func/overlord')
-rwxr-xr-x | func/overlord/Makefile | 4 | ||||
-rwxr-xr-x | func/overlord/cmd_modules/Makefile | 17 | ||||
-rwxr-xr-x | func/overlord/modules/Makefile | 17 |
3 files changed, 36 insertions, 2 deletions
diff --git a/func/overlord/Makefile b/func/overlord/Makefile index f2bc6c4..8c0ae9b 100755 --- a/func/overlord/Makefile +++ b/func/overlord/Makefile @@ -1,5 +1,5 @@ - +DIRS = modules cmd_modules PYFILES = $(wildcard *.py) PYCHECKER = /usr/bin/pychecker @@ -9,7 +9,7 @@ clean:: @rm -fv *.pyc *~ .*~ *.pyo @find . -name .\#\* -exec rm -fv {} \; @rm -fv *.rpm - + -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done pychecker:: @$(PYCHECKER) $(PYFILES) || exit 0 diff --git a/func/overlord/cmd_modules/Makefile b/func/overlord/cmd_modules/Makefile new file mode 100755 index 0000000..15750f7 --- /dev/null +++ b/func/overlord/cmd_modules/Makefile @@ -0,0 +1,17 @@ + +PYFILES = $(wildcard *.py) + +PYCHECKER = /usr/bin/pychecker +PYFLAKES = /usr/bin/pyflakes + +clean:: + @rm -fv *.pyc *~ .*~ *.pyo + @find . -name .\#\* -exec rm -fv {} \; + @rm -fv *.rpm + -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done + +pychecker:: + @$(PYCHECKER) $(PYFILES) || exit 0 + +pyflakes:: + @$(PYFLAKES) $(PYFILES) || exit 0 diff --git a/func/overlord/modules/Makefile b/func/overlord/modules/Makefile new file mode 100755 index 0000000..15750f7 --- /dev/null +++ b/func/overlord/modules/Makefile @@ -0,0 +1,17 @@ + +PYFILES = $(wildcard *.py) + +PYCHECKER = /usr/bin/pychecker +PYFLAKES = /usr/bin/pyflakes + +clean:: + @rm -fv *.pyc *~ .*~ *.pyo + @find . -name .\#\* -exec rm -fv {} \; + @rm -fv *.rpm + -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done + +pychecker:: + @$(PYCHECKER) $(PYFILES) || exit 0 + +pyflakes:: + @$(PYFLAKES) $(PYFILES) || exit 0 |