-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
35 lines (27 loc) · 841 Bytes
/
Makefile
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
35
#.ONESHELL:
#SHELL = /bin/bash
DOCNAME=main
all: tex
## tex : Compiles latex into pdf in main repository and deletes all aux files
tex: compile-tex clean-tex
mv tex/$(DOCNAME).pdf $(DOCNAME).pdf
## compile-tex : Compile latex file with bibliografy
.PHONY: compile-tex
compile-tex:
cd tex; pdflatex $(DOCNAME).tex
# Depending the format for bib, use biber or bibtex
cd tex; biber $(DOCNAME).bcf
# bibtex $(DOCNAME).aux
cd tex; pdflatex $(DOCNAME).tex
cd tex; pdflatex $(DOCNAME).tex
## clean-tex : Remove auxiliary files created during latex compilation
.PHONY: clean-tex
clean-tex:
cd tex; rm *.blg *.bbl *.aux *.log *.toc *.bcf *.out *.xml
.PHONY : help
help : Makefile
@echo ------------------
@echo Make Help Commands
@echo ------------------
@sed -n 's/^##//p' $<
@echo ------------------