Makefile
1.34 KB
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
36
37
38
39
40
41
42
43
44
# source: https://tex.stackexchange.com/questions/40738/how-to-properly-make-a-latex-project
TEX = pdflatex -shell-escape -interaction=nonstopmode -file-line-error
BIB = bibtex
TARGET = ifcs2018
all: $(TARGET)_abstract $(TARGET)_poster $(TARGET)_proceeding $(TARGET)_journal
view: $(TARGET)
evince $(TARGET).pdf
view_poster: $(TARGET)_poster
evince $(TARGET)_poster.pdf
$(TARGET)_abstract: $(TARGET)_abstract.tex references.bib biblio.bib
$(TEX) $@.tex
$(BIB) $@
$(TEX) $@.tex
$(TEX) $@.tex
$(TARGET)_poster:
$(TEX) $@.tex
$(TEX) $@.tex
$(TARGET)_proceeding: $(TARGET)_proceeding.tex references.bib biblio.bib
$(TEX) $@.tex
$(BIB) $@
$(TEX) $@.tex
$(TEX) $@.tex
$(TARGET)_journal: $(TARGET)_journal.tex references.bib biblio.bib
$(TEX) $@.tex
$(BIB) $@
$(TEX) $@.tex
$(TEX) $@.tex
clean:
rm -f $(TARGET)_abstract.aux $(TARGET)_abstract.log $(TARGET)_abstract.out $(TARGET)_abstract.bbl $(TARGET)_abstract.blg
rm -f $(TARGET)_poster.aux $(TARGET)_poster.log $(TARGET)_poster.out
rm -f $(TARGET)_proceeding.aux $(TARGET)_proceeding.log $(TARGET)_proceeding.out $(TARGET)_proceeding.bbl $(TARGET)_proceeding.blg
rm -f $(TARGET)_journal.aux $(TARGET)_journal.log $(TARGET)_journal.out $(TARGET)_journal.bbl $(TARGET)_journal.blg
mrproper: clean
rm -f $(TARGET)_abstract.pdf $(TARGET)_proceeding.pdf $(TARGET)_poster.pdf $(TARGET)_journal.pdf