diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-04-12 03:01:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-04-12 03:01:31 +0100 |
commit | 284edb86484de8ccf3adf35d5cb9ff6ba64759ec (patch) | |
tree | 0cf7b9098e081b7f5fab9971e62cf58e54f7514b /test | |
parent | a8974223dc6376a11588c6ecf1e54da5329b9c72 (diff) |
Do not raise an error if we fail to locate 'find' or 'xargs'
Whilst not being able to delete all of the test output is messy it is
however not fatal, so do not abort configuration simply because we
cannot find either program.
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index a6adec799..4effd77e2 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -523,14 +523,17 @@ CLEANFILES = \ $(EXTRA_LTLIBRARIES) \ $(EXTRA_PROGRAMS) -# most systems cannot handle all of our clean files together +# This used to be a simple 'echo ${RM} *.ps *.pdf *.svg *.etc', but +# most systems cannot handle all of our clean files together. +# Then it became a fancy find using many GNU extensions, but then the ugly +# reality of portability was raised and it became.... clean-local: - -${FIND} . -name '*.ps' -print | ${XARGS} ${RM} - -${FIND} . -name '*.pdf' -print | ${XARGS} ${RM} - -${FIND} . -name '*.svg' -print | ${XARGS} ${RM} - -${FIND} . -name '*-out.png' -print | ${XARGS} ${RM} + -${FIND} . -name '*.ps' -print | ${XARGS} ${RM} + -${FIND} . -name '*.pdf' -print | ${XARGS} ${RM} + -${FIND} . -name '*.svg' -print | ${XARGS} ${RM} + -${FIND} . -name '*-out.png' -print | ${XARGS} ${RM} -${FIND} . -name '*-diff.png' -print | ${XARGS} ${RM} - -${FIND} . -name '*.log' -print | ${XARGS} ${RM} + -${FIND} . -name '*.log' -print | ${XARGS} ${RM} # Check tests under valgrind # Saves log to valgrind-log |