summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/dfgproposal/Makefile.template
blob: edad27867e66f7e22191e4c0932e9ecbdb65497a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
TARGET = proposal.tex CV_PubList_Kohlhase.tex
TARGET.pdf 	= $(TARGET:%.tex=%.pdf)
PDFLATEX = pdflatex -interaction nonstopmode -file-line-error

all: $(TARGET.pdf)

$(TARGET.pdf): %.pdf: %.tex
	$(PDFLATEX) $<  || $(RM) $@
	@echo
	@if (test -e $(patsubst %.tex, %.idx,  $<));\
	    then makeindex $(patsubst %.tex, %.idx,  $<); fi
	@echo
	@if (grep "(re)run BibTeX" $(patsubst %.tex, %.log,  $<)> /dev/null);\
	    then bibtex $(patsubst %.tex, %,  $<); bibtex $(patsubst %.tex, %1-blx, $<);fi
	@echo   
	$(PDFLATEX)  $< || $(RM) $@
	@echo
	@if (grep Rerun $(patsubst %.tex, %.log,  $<) > /dev/null);\
	   then $(PDFLATEX)  $<  || $(RM) $@; fi
	@if (grep Rerun $(patsubst %.tex, %.log,  $<) > /dev/null);\
	    then $(PDFLATEX)  $<  || $(RM) $@; fi

echo: 
	echo $(TARGET.pdf)