Use find | xargs to overcome shell command line limit.

Once again we have hit the command line limit with the sheer volume of
generated test output. So replace the glob with a find which has the
additional advantage of only needing to walk the tree once to generate
the file lists - this begins to be noticeable with such large directories.
This commit is contained in:
Chris Wilson 2007-04-11 12:26:21 +01:00 committed by Carl Worth
parent 61b8e34613
commit b745126a04

View file

@ -523,14 +523,16 @@ CLEANFILES = \
$(EXTRA_LTLIBRARIES) \
$(EXTRA_PROGRAMS)
# some systems cannot handle all of our clean files together
# most systems cannot handle all of our clean files together
clean-local:
-$(RM) *.ps
-$(RM) *.pdf
-$(RM) *.svg
-$(RM) *-out.png
-$(RM) *-diff.png
-$(RM) *.log
-find . \
\( -name '*.ps' -print0 \) , \
\( -name '*.pdf' -print0 \) , \
\( -name '*.svg' -print0 \) , \
\( -name '*-out.png' -print0 \) , \
\( -name '*-diff.png' -print0 \) , \
\( -name '*.log' -print0 \) \
| xargs -0 rm -f
# Check tests under valgrind
# Saves log to valgrind-log