As part of a bash script, which has set -e
, I do make distclean
which, obviously, fails with the following error, if I have run distclean before calling the script:
make: *** No rule to make target 'distclean'. Stop
Is there way to do distclean and not fail if there's nothing to clean?