-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
34 lines (27 loc) · 994 Bytes
/
Copy pathmakefile
File metadata and controls
34 lines (27 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
INPUT_PHOTOS_DIR = photos
THUMBS_WIDTH = 200
THUMBS_DIR = thumbs
MAX_CHORIST_PER_ROW = 4
MAX_ROW_PER_PAGE = 3
IMAGES_MARGIN = 0.7
IMAGE_EXT_FILE = jpg
IN_DIR = in
OUT_DIR = out
STAFF_1 = Léonie Cachelin - Directrice du choeur
STAFF_2 = Borbála Szuromi - Coach vocale
all: convertImages trombinoscope.pdf
trombinoscope.pdf: $(IN_DIR)/trombinoscope.tex $(OUT_DIR)/data.tex
cp $< $(OUT_DIR)
sed -i 's/@STAFF_1/$(STAFF_1)/g' $(OUT_DIR)/trombinoscope.tex
sed -i 's/@STAFF_2/$(STAFF_2)/g' $(OUT_DIR)/trombinoscope.tex
pdflatex $(OUT_DIR)/trombinoscope.tex
$(OUT_DIR)/data.tex: $(IN_DIR)/choeur-photos.csv
mkdir -p $(OUT_DIR)
scala src/MakeData.scala $< $(MAX_CHORIST_PER_ROW) $(MAX_ROW_PER_PAGE) $(IMAGES_MARGIN) $(IMAGE_EXT_FILE) $@
convertImages:
scala src/ConvertImages.scala $(INPUT_PHOTOS_DIR) $(THUMBS_DIR) $(THUMBS_WIDTH)
mostlyclean:
rm -rf *.aux *.log *.out
clean: mostlyclean
rm -rf $(OUT_DIR) $(THUMBS_DIR) trombinoscope.pdf
.PHONY: $(OUT_DIR)/data.tex mostlyclean clean