forked from mikhailklassen/research-diary-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (35 loc) · 1.14 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
# Custom Makefile for Compiling Research Diaries
# ----------------------------------------------
#
# Author: Mikhail Klassen
# Email: [email protected]
# Created: 21 November 2011
# Modified: 3 January 2012
# Set the diary year you wish to compile and user info
YEAR := 2019
AUTHOR := Arne Kobald
INSTITUTION := EKUT
# Do not edit past this line
RM := rm -rf
SHELL := /bin/bash
TEXFILE := $(YEAR)-Research-Diary.tex
LOGFILE := $(YEAR)-Research-Diary.log
DVIFILE := $(YEAR)-Research-Diary.dvi
PSFILE := $(YEAR)-Research-Diary.ps
PDFFILE := $(YEAR)-Research-Diary.pdf
AUXFILE := $(YEAR)-Research-Diary.aux
OUTFILE := $(YEAR)-Research-Diary.out
.PHONY : clean
anthology:
-@echo 'Creating anthology for research diary entries from the year $(YEAR)'
-@$(SHELL) src/create_anthology.sh "$(YEAR)" "$(AUTHOR)" "$(INSTITUTION)"
-pdflatex -synctex=1 -interaction=nonstopmode -shell-escape $(TEXFILE)
#-dvips -q -o "$(PSFILE)" "$(DVIFILE)" -R0
#-ps2pdf "$(PSFILE)" "$(PDFFILE)"
-okular $(PDFFILE)
clean:
-$(RM) $(TEXFILE)
-$(RM) $(LOGFILE) $(DVIFILE) $(PSFILE) $(AUXFILE) $(OUTFILE)
-$(RM) *.tmp
-$(RM) research_diary.sty
-@echo 'Done cleaning'