25 lines
670 B
Makefile
25 lines
670 B
Makefile
NAME=report
|
|
RM=rm
|
|
TEX=lualatex
|
|
BIB=biber
|
|
TEXFLAGS=--interaction=nonstopmode --output-directory=./out-temp/
|
|
BIBFLAGS=--input-directory=./out-temp --output-directory=./out-temp/
|
|
|
|
PRINTFORMAT="\033[1;92;49m%s\033[m\n"
|
|
|
|
.PHONY: all clean
|
|
|
|
all:
|
|
@mkdir -p out-temp
|
|
@printf ${PRINTFORMAT} "[1/4] First Compilation"
|
|
${TEX} ${TEXFLAGS} ./src/${NAME}.tex
|
|
@printf ${PRINTFORMAT} "[2/4] Bib Generation"
|
|
${BIB} ${BIBFLAGS} ${NAME}
|
|
@printf ${PRINTFORMAT} "[3/4] Second Compilation"
|
|
${TEX} ${TEXFLAGS} ./src/${NAME}.tex
|
|
@printf ${PRINTFORMAT} "[4/4] Final Compilation"
|
|
${TEX} ${TEXFLAGS} ./src/${NAME}.tex
|
|
|
|
clean:
|
|
${RM} ./out-temp/{*.aux,*.log,*.out,*.blg,*.bcf,*.bbl,*.xml}
|