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

all: $(TARGET)

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

$(INSTALLTO): paper.pdf
	cp paper.pdf $(INSTALL)

install: $(INSTALL)
	mkdir -p $(GITDIR)
	cd $(GITDIR); git pull; cd - 
	cp $(INSTALL) $(GITDIR)/$(INSTALLTO)
	cd $(GITDIR); git add --force $(INSTALLTO);git commit -m're-generated'; git push; cd -