build: makefile: more modular rules
This commit is contained in:
parent
89c2db6663
commit
49b300fbb4
15
Makefile
15
Makefile
|
@ -1,12 +1,15 @@
|
||||||
|
BUILD_DIR := build
|
||||||
|
FILES := \
|
||||||
|
cv_en.pdf \
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: cv_en.pdf
|
all: $(FILES)
|
||||||
|
|
||||||
cv_en.pdf: build/cv_en.pdf
|
%.pdf: $(BUILD_DIR)/%.pdf
|
||||||
cp build/cv_en.pdf .
|
cp $< $@
|
||||||
|
|
||||||
.PHONY: build/cv_en.pdf
|
$(BUILD_DIR)/%.pdf: %.tex
|
||||||
build/cv_en.pdf:
|
@latexmk $< # Let the tool do its job
|
||||||
@latexmk # Let the tool do its job
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in a new issue