Skip to content

Commit

Permalink
Keep it DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
compor committed Sep 19, 2024
1 parent c611255 commit 6720a63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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}
Expand Down

0 comments on commit 6720a63

Please sign in to comment.