Remove example Makefiles when running distclean-examples in out-of-src build

This commit is contained in:
Karl Wette 2014-05-24 20:07:52 +02:00
commit bdc63e5a9f

View file

@ -420,6 +420,11 @@ distclean-examples:
@echo distcleaning Examples
@$(MAKE) $(FLAGS) clean-examples
@cd Examples && $(MAKE) $(FLAGS) distclean
@if test "x$(srcdir)" != "x."; then \
for mkfile in `cd $(srcdir) && find Examples/ -type f -name Makefile`; do \
rm -f "$$mkfile"; \
done; \
fi
distclean-ccache:
@test -z "$(ENABLE_CCACHE)" || (cd $(CCACHE) && $(MAKE) $(FLAGS) distclean)