From 8ef75863907fd84ae71f77a37b37173db3edf0af Mon Sep 17 00:00:00 2001 From: Chris Vasiladiotis Date: Thu, 19 Sep 2024 09:23:08 +0100 Subject: [PATCH 1/4] Fix comments --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ad7ea9a..ee9177f 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ -# Source Latex files +# Source LaTex files TEX_MAIN_PAPER = paper.tex TEX_MAIN_SUBMISSION = submission.tex -# Generate PDF files +# Generated PDF files PDF_PAPER = paper.pdf PDF_SUBMISSION = submission.pdf +# Resources IMAGES := $(wildcard images/*.jpg images/*.pdf images/*.png) # grammar is a phony rule, it generates index.html From c6112559ef54f96b2521de7b866de1be295a4eff Mon Sep 17 00:00:00 2001 From: Chris Vasiladiotis Date: Thu, 19 Sep 2024 09:23:22 +0100 Subject: [PATCH 2/4] Fix phony targets --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ee9177f..aab8fa8 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,7 @@ PDF_SUBMISSION = submission.pdf # Resources IMAGES := $(wildcard images/*.jpg images/*.pdf images/*.png) -# grammar is a phony rule, it generates index.html -# from textidote -.PHONY: grammar +.PHONY: all grammar paper submission view-paper view-submission clean all: ${PDF_SUBMISSION} ${PDF_PAPER} From 6720a63c350cd0e6f74c4fd5ab393df1159dbb6f Mon Sep 17 00:00:00 2001 From: Chris Vasiladiotis Date: Thu, 19 Sep 2024 10:03:04 +0100 Subject: [PATCH 3/4] Keep it DRY --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index aab8fa8..789f4d5 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ TEX_MAIN_PAPER = paper.tex TEX_MAIN_SUBMISSION = submission.tex # Generated PDF files -PDF_PAPER = paper.pdf -PDF_SUBMISSION = submission.pdf +PDF_PAPER := $(TEX_MAIN_PAPER:.tex=.pdf) +PDF_SUBMISSION := $(TEX_MAIN_SUBMISSION:.tex=.pdf) # Resources IMAGES := $(wildcard images/*.jpg images/*.pdf images/*.png) @@ -14,11 +14,11 @@ IMAGES := $(wildcard images/*.jpg images/*.pdf images/*.png) all: ${PDF_SUBMISSION} ${PDF_PAPER} # spelling and grammar -grammar: paper.tex +grammar: $(TEX_MAIN_PAPER) # check that textidote exists. @textidote --version # allowed to fail since it throws error if we have grammar mistakes - -textidote --check en --output html paper.tex > index.html + -textidote --check en --output html $< > index.html python3 -m http.server ${PDF_PAPER}: ${TEX_MAIN_PAPER} ${IMAGES} From 81e52c2b917de584516c31f7ee343c3cbe5f206a Mon Sep 17 00:00:00 2001 From: Chris Vasiladiotis Date: Thu, 19 Sep 2024 14:05:48 +0100 Subject: [PATCH 4/4] Fix typo --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 789f4d5..147737a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Source LaTex files +# Source LaTeX files TEX_MAIN_PAPER = paper.tex TEX_MAIN_SUBMISSION = submission.tex