diff options
author | Tom Harley | 2020-02-19 03:30:14 +0000 |
---|---|---|
committer | Tom Harley | 2020-02-19 03:30:14 +0000 |
commit | de08ff37292aaba7544543e81d4a3f82719f0182 (patch) | |
tree | 25d09e7c993af9262c465bd66ce4a3de99153300 | |
parent | Add cover letter for CGI (diff) | |
download | cv-de08ff37292aaba7544543e81d4a3f82719f0182.tar.gz cv-de08ff37292aaba7544543e81d4a3f82719f0182.zip |
Automate make all
New entries now don’t need to be added to the Makefile manually; it scans the cover-letters directory for .tex
files automatically.
Honestly, I’m not sure how this is working. The $(shell ...)
line prefixes all of its results with cover-letter/
, but the PDF versions are generated without this prefix. This might cause issues later.
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,9 +1,14 @@ .PHONY: default all clean +TEX=$(shell ls cover-letters/*.tex) +PDF=$(TEX:.tex=.pdf) + +test: + echo $(TEX) $(PDF) + default: all -all: cv.pdf mythic-beasts.pdf thekla.pdf zachtronics.pdf cs.pdf factorio.pdf \ - fetchai.pdf +all: $(PDF) %.pdf: cover-%.pdf cv.pdf pdfmarks gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$@" $^ |