Ignore all intermediate python files, and use find in the clean rule as there
are no Makefiles in subdirectories to participate in a recursive clean.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
*.spit
*.gcno
*.gcda
+*.py[ocd]
TAGS
GTAGS
GRTAGS
.PHONY: clean
clean:
- rm -f $(XENPATH)
- rm -rf build/ *.pyc *.pyo *.o *.a *~ xen/util/auxbin.pyc
- rm -f xen/lowlevel/xl/_pyxl_types.h
- rm -f xen/lowlevel/xl/_pyxl_types.c
- rm -f $(DEPS)
+ find . \( -name "*.py[ocd]" -o -name "*~" -o -name "_*.[hc]" \) -delete
+ rm -rf build/
+ rm -f $(XENPATH) $(DEPS)
-include $(DEPS)