I am trying to write a Makefile for a LaTeX project which uses more than one .tex file. I was wondering, if it is possible to create several pdf's (or any other data format) for each .tex and link them in the end together to the main pdf in order to save time within the compilation process.
Excerpt from the current Makefile:
build/target.pdf: ./content/target.tex latexmk ./content/target.tex
In the content file there are several .tex files. Now I would like to do something similar to c-style Makefiles e.g:
BUILD_DIR = build $(BUILD_DIR)/%.o: %.tex latexmk ./content/%.tex
and then link again all the object files together