BUILD_DIR := build FILES := \ en.pdf \ fr.pdf \ .PHONY: all all: $(FILES) %.pdf: $(BUILD_DIR)/%.pdf cp $< $@ $(BUILD_DIR)/%.pdf: %.tex cv_common.tex twentysecondcv.cls @latexmk $< # Let the tool do its job .PHONY: clean clean: $(RM) -r \ $(BUILD_DIR) \ $(FILES) \