From e8f92cc33e0834f2da8611cf8c4ebbe110c9ec0e Mon Sep 17 00:00:00 2001 From: Christian Bay Date: Wed, 30 Sep 2015 17:39:48 +0200 Subject: [PATCH] =?UTF-8?q?Makefile=20f=C3=BCr=20MaC4Cheatsheet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Public/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Public/Makefile 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