clean-directory 247 B

1234567891011121314151617
  1. #!/bin/sh
  2. if [ -e Makefile ] ; then
  3. make clean
  4. exit
  5. fi
  6. TEMPFILE=$(mktemp)
  7. cat <<EOF >${TEMPFILE}
  8. clean:
  9. \$(RM) *~ #*# *.aux *.bcf *.bbl *.toc *.blg *.lol *.log *.out *.run.xml flycheck_*
  10. EOF
  11. make -f ${TEMPFILE} clean
  12. rm ${TEMPFILE}