Well, the title is pretty much self-explanatory but for sake of clarity, I have latex paper with such structure:
.
├── back_matter
│ └── some_tex_files.tex
├── bibliography
│ └── bibliography.bib
├── body_matter
│ ├── a_file.tex
│ └── another_file.tex
├── graphics
│ └── some_images.png
├── styles
│ ├── bib_style.bbl
│ └── paper_style.cls
├── paper.tex
└── Makefile
And a Makefile
like so:
.PHONY: paper.pdf
all: paper.pdf
paper.pdf: paper.tex
latexmk -pdf -pdflatex="pdflatex -interactive=nonstopmode" -use-make paper.tex
clean:
latexmk -CA
make clean
successfully cleans all the auxiliary files in the root
(.
), however, it does not clean the auxiliary files created in the subdirectories. How to define a rule for cleaning all the .aux
files within the subfolders? I should mention that I use \input
to add the files to paper.tex
.
P.S. Is this make file well written?