How to get makefile to depend on any files inside a folder
问题 I have a simple makefile that I use to build some latex files. The syntax looks like this: pdf: thesis.tex chapters/a.tex chapters/b.tex chapters/c.tex latexmk -pdf -pdflatex="pdflatex thesis.tex open: open thesis.pdf The files inside chapters folder can increase further with d.tex , e.tex and may even contain subfolders f\section1.tex , f\section2.tex etc. I manually add all the requried tex files inside my thesis.tex like this which is not a problem. \input{chapters/a.tex} \input{chapters/b