From ac373d1bad8035bcdc0307e59b67222e675304e7 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Thu, 15 Feb 2024 10:07:33 +0100 Subject: [PATCH] Makefile optimizations --- makefile | 9 +++++---- readme.md | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index ed95283..3328327 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,7 @@ PRACE=prace.tex +.PHONY: all clean cleanall vlna remake + all: vlna pdf pdf: @@ -8,14 +10,13 @@ pdf: clean: latexmk -c - rm pdfa.xmpi prace.bbl prace.run.xml + rm -f pdfa.xmpi prace.bbl prace.run.xml -cleanall: +cleanall: clean latexmk -C - rm pdfa.xmpi prace.bbl prace.run.xml vlna: vlna -l -r *.tex - vlna -l -r chapters/*.tex + vlna -l -r kapitoly/*.tex remake: cleanall vlna pdf diff --git a/readme.md b/readme.md index e659ffc..d31c4bb 100644 --- a/readme.md +++ b/readme.md @@ -12,6 +12,7 @@ All make targets: | `clean` | Remove all build files except the output PDF | | `cleanall` | Remove all build files including the output PDF | | `vlna` | Run `vlna` for adding Czech & Slovak non-breaking spaces | +| `remake` | Runs `cleanall`, `vlna` and `pdf` targets | The default make targets are `vlna` and `pdf`.