Skip to content
Snippets Groups Projects
Commit eeaf66b1 authored by Michael Kohlhase's avatar Michael Kohlhase
Browse files

better Makefile

parent 3a99dcb5
No related branches found
No related tags found
No related merge requests found
SRC = $(shell ls *.tex) SRC = $(shell ls *.tex)
TARGET = paper.pdf #report.pdf T1 = paper.pdf
INSTALL = paper.pdf #report.pdf I1 = cicm18-viewfinder.pdf
INSTALLTO = cicm18-viewfinder.pdf #viewfinder-report.pdf T1 = report.pdf
GITDIR = ~/vc/git/gl.kwarc.info/mkohlhase/www/submit I1 = viewfinder-report.pdf
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)
all: $(TARGET) all: $(TARGET)
...@@ -12,11 +19,8 @@ $(TARGET): %.pdf: %.tex $(SRC) ...@@ -12,11 +19,8 @@ $(TARGET): %.pdf: %.tex $(SRC)
pdflatex $(basename $<) pdflatex $(basename $<)
pdflatex $(basename $<) pdflatex $(basename $<)
$(INSTALLTO): paper.pdf install: $(TARGET)
cp paper.pdf $(INSTALL)
install: $(INSTALL)
mkdir -p $(GITDIR) mkdir -p $(GITDIR)
cd $(GITDIR); git pull; cd - cd $(GITDIR); git pull; cd -
cp $(INSTALL) $(GITDIR)/$(INSTALLTO) cp $(C1); cp $(C2)
cd $(GITDIR); git add --force $(INSTALLTO);git commit -m're-generated'; git push; cd - cd $(GITDIR); git add --force $(INSTALL);git commit -m're-generated'; git push; cd -
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment