mirror of
https://github.com/dhil/phd-dissertation
synced 2026-03-13 02:58:26 +00:00
Draft compilation
This commit is contained in:
6
Makefile
6
Makefile
@@ -3,8 +3,10 @@ CFLAGS=-interaction=nonstopmode -halt-on-error -file-line-error
|
||||
BIBC=bibtex
|
||||
PAPER=thesis
|
||||
BIBLIO=$(PAPER)
|
||||
LATEST_COMMIT=$(shell git log --format="%h" -n 1)
|
||||
|
||||
all: $(PAPER).pdf
|
||||
draft: $(PAPER).pdf-draft
|
||||
|
||||
$(PAPER).aux: $(PAPER).tex
|
||||
$(TEXC) $(CFLAGS) $(PAPER)
|
||||
@@ -16,6 +18,10 @@ $(PAPER).pdf: $(PAPER).aux $(BIBLIO).bbl
|
||||
$(TEXC) $(CFLAGS) $(PAPER)
|
||||
$(TEXC) $(CFLAGS) $(PAPER)
|
||||
|
||||
$(PAPER).pdf-draft: CFLAGS:=$(CFLAGS) "\def\DRAFT{$(LATEST_COMMIT)}\input{$(PAPER)}"
|
||||
$(PAPER).pdf-draft: all
|
||||
mv $(PAPER).pdf $(PAPER)-draft.pdf
|
||||
|
||||
clean:
|
||||
rm -f *.log *.aux *.toc *.out
|
||||
rm -f *.bbl *.blg *.fls *.xml
|
||||
|
||||
@@ -144,7 +144,12 @@
|
||||
% \title{Handling Computational Effects}
|
||||
% \title{Programming Computable Effectful Functions}
|
||||
% \title{Handling Effectful Computations}
|
||||
\ifdefined\DRAFT
|
||||
\title{Foundations for Programming and Implementing Effect Handlers\\
|
||||
(DRAFT \href{https://github.com/dhil/phd-dissertation/commit/\DRAFT}{\DRAFT})}
|
||||
\else
|
||||
\title{Foundations for Programming and Implementing Effect Handlers}
|
||||
\fi
|
||||
%\title{Foundations for Programming with Control via Effect Handlers}
|
||||
\author{Daniel Hillerström}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user