Makefile 625 Bytes
Newer Older
Michael Kohlhase's avatar
new  
Michael Kohlhase committed
1
SRC = $(shell ls *.tex)
Michael Kohlhase's avatar
Michael Kohlhase committed
2
3
T1 = paper.pdf
I1 = cicm18-viewfinder.pdf
Michael Kohlhase's avatar
Michael Kohlhase committed
4
5
T2 = report.pdf
I2 = viewfinder-report.pdf
Michael Kohlhase's avatar
Michael Kohlhase committed
6
7
8
9
10
11
12
PI1 = papers/$(I1)
PI2 = submit/$(I2)
TARGET = $(T1) $(T2)
GITDIR = ~/vc/git/gl.kwarc.info/mkohlhase/www
C1 = $(T1) $(GITDIR)/$(PI1)
C2 = $(T2) $(GITDIR)/$(PI2)
INSTALL = $(PI1) $(PI2)
Michael Kohlhase's avatar
new  
Michael Kohlhase committed
13
14
15
16
17
18
19
20
21

all: $(TARGET)

$(TARGET): %.pdf: %.tex $(SRC)
	pdflatex $(basename $<)
	bibtex $(basename $<) || true
	pdflatex $(basename $<)
	pdflatex $(basename $<)

Michael Kohlhase's avatar
Michael Kohlhase committed
22
install: $(TARGET)
Michael Kohlhase's avatar
new  
Michael Kohlhase committed
23
24
	mkdir -p $(GITDIR)
	cd $(GITDIR); git pull; cd - 
Michael Kohlhase's avatar
Michael Kohlhase committed
25
26
	cp $(C1); cp $(C2)
	cd $(GITDIR); git add --force $(INSTALL);git commit -m're-generated'; git push; cd -