diff --git a/Public/Makefile b/Public/Makefile new file mode 100644 index 0000000..b0a4b0f --- /dev/null +++ b/Public/Makefile @@ -0,0 +1,22 @@ +PDF = MaC4Cheatsheet + +all: $(PDF) + +continuous: $(PDF).continuous + +%.continuous: %.pdf + latexmk -jobname=$(@:%.continuous=%) -pvc -pdf $(@:%.continuous=%).tex + +$(PDF): $(PDF).pdf + +%.pdf: %.tex + latexmk -jobname=$(@:%.pdf=%) -pdf $< + +clean: + latexmk -c -f $(PDF).tex + +distclean: + latexmk -C -f $(PDF).tex + rm -f $(PDF).pdf + +.PHONY: all clean distclean $(PDF) continuous