forked from scipy-conference/scipy_proceedings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 1.02 KB
/
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
36
37
38
39
40
41
42
43
44
45
BUILDDIR = _build
TEXDIR = _build/tex
HTMLDIR = _build/html
PDFDIR = _build/pdfs
PAPERDIR = ../output
TEMPLATES = _templates
STATIC = _static
BUILDTMPL = ./build_template.py
TEX2PDF := cd $(TEXDIR) && pdflatex -interaction=batchmode
.PHONY: front-pdf proceedings papers toc clean
all: clean proceedings
clean:
rm -rf $(PAPERDIR)/* $(BUILDDIR)/*
$(TEXDIR):
mkdir -p $@
$(TEXDIR)/%.tex: $(TEXDIR)
$(BUILDTMPL) $(@F)
$(TEXDIR)/%.pdf: $(TEXDIR)/%.tex
($(TEX2PDF) $(<F) 1>/dev/null)
title-pdf: $(TEXDIR)/title.pdf
copyright-pdf: $(TEXDIR)/copyright.pdf
organization-pdf: $(TEXDIR)/organization.pdf
students-pdf: $(TEXDIR)/students.pdf
front-pdf: title-pdf copyright-pdf organization-pdf students-pdf
papers:
./build_papers.py
proceedings: front-pdf papers $(TEXDIR)/proceedings.tex
($(TEX2PDF) proceedings 1>/dev/null)
($(TEX2PDF) proceedings 1>/dev/null)
cp $(TEXDIR)/proceedings.pdf $(PDFDIR)/proceedings.pdf
proceedings-html: proceedings
python build_html.py
-convert $(STATIC)/logo.png -resize x100 $(HTMLDIR)/logo.png