-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 936 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 936 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
# Output PDF names
PAPER_TEMPLATE = nime-paper-template
MUSIC_TEMPLATE = nime-music-workshop-template
ALT_NIME_TEMPLATE = nime-alt-template
# Full compilation rule with BibTeX
define compile_tex
@mkdir -p $(dir $@)
cd $(dir $<) && pdflatex -interaction=nonstopmode $(notdir $<)
cd $(dir $<) && bibtex $(basename $(notdir $<))
cd $(dir $<) && pdflatex -interaction=nonstopmode $(notdir $<)
cd $(dir $<) && pdflatex -interaction=nonstopmode $(notdir $<)
endef
$(PAPER_TEMPLATE).pdf: $(PAPER_TEMPLATE).tex
$(compile_tex)
$(MUSIC_TEMPLATE).pdf: $(MUSIC_TEMPLATE).tex
$(compile_tex)
$(ALT_NIME_TEMPLATE).pdf: $(ALT_NIME_TEMPLATE).tex
$(compile_tex)
all: $(MUSIC_TEMPLATE).pdf $(PAPER_TEMPLATE).pdf $(ALT_NIME_TEMPLATE).pdf
# Clean generated files
clean:
rm -f $(PAPER_TEMPLATE).pdf $(MUSIC_TEMPLATE).pdf $(ALT_NIME_TEMPLATE).pdf
rm -f *.aux *.log *.out \
*.bbl *.blg *.fls *.fdb_latexmk \
*.synctex.gz
.PHONY: all clean