ransford / pdflatex-makefile

Simple Makefile for pdflatex-produced documents
113 stars 37 forks source link

Clean up .fdb_latexmk and .fls files #38

Closed cdwilson closed 6 years ago

cdwilson commented 6 years ago

I found that make clean was leaving around .fdb_latexmk and .fls files. This PR will remove these files when make clean is run.

Also, I'm curious why the .pdf file itself is not removed as part of the make clean process? (since it's an artifact of the build)

ransford commented 6 years ago

Thanks for this PR. make distclean (see #12) does what you want, but I'd gladly accept another PR to consolidate clean and distclean into a single clean target.

cdwilson commented 6 years ago

Ahh, thx, I missed that target.

IMHO the current behavior is a bit of a misuse of distclean...

From https://www.gnu.org/software/automake/manual/html_node/Clean.html#Clean

  • Otherwise, if make built it, then clean should delete it.
  • If configure built it, then distclean should delete it.

Also, it looks like distclean doesn't remove the output of make snapshot.

ransford commented 6 years ago

I share your opinion about clean vs. distclean. In fact I don't think the distclean concept maps well onto this domain. So many tools leaving so many different kinds of turds!