-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 767 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 767 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
TEX := pdflatex
BIB := biber
TARGET := paper
CH_DIR := ./chapters
CHAPTERS := $(wildcard $(CH_DIR)/*.tex)
OUT_DIR := ./out
all: open
compile:
@mkdir -p $(OUT_DIR)
@$(TEX) -halt-on-error -output-directory $(OUT_DIR) -shell-escape $(TARGET).tex
@$(BIB) -output-directory $(OUT_DIR) $(TARGET) > /dev/null
@makeglossaries -d $(OUT_DIR) $(TARGET)
@$(TEX) -halt-on-error -output-directory $(OUT_DIR) -shell-escape $(TARGET).tex > /dev/null
@$(TEX) -halt-on-error -output-directory $(OUT_DIR) -shell-escape $(TARGET).tex > /dev/null
@cp $(OUT_DIR)/$(TARGET).pdf ./$(TARGET).pdf
@clear
open: compile
@open $(TARGET).pdf
count-detailed:
@texcount -nosub -inc -q $(TARGET).tex
count:
@texcount -nosub -merge -q $(TARGET).tex
clean:
@rm -rf $(OUT_DIR)