Files

58 lines
1.7 KiB
Makefile
Raw Permalink Normal View History

2025-06-18 20:37:53 +01:00
# https://github.com/ieeevgtc/vgtc_conference_latex/releases
#set the a .dvi name that corresponds to your main .tex file
DVIFILES = main.dvi
MAINTEXFILE = $(DVIFILES:.dvi=.tex)
SUBTEXFILES =
BIBFILES = biblio.bib
#switch = to # when using ps2pdf in win32 (mingw/msys), i.e. uncomment 2nd line
#E=\=
E=\#
#adjust paper size: letter/a4
PAPERSIZE=letter
PDFLATEXPAPERSIZE="-sPAPERSIZE$E$(PAPERSIZE)"
#uncomment the following two lines when using option tvcgpapersize
#DVIPSPAPERSIZE=-T 7.875in,10.75in
#PDFLATEXPAPERSIZE=
#----------------------------------------------------------------------------
BIBTEX = bibtex
PDFTEX = pdflatex -shell-escape
RERUN = "(There were undefined references|Rerun to get (cross-references|the bars) right)"
RERUNBIB = "No file.*\.bbl|Citation.*undefined"
PDFTEXFILES = $(DVIFILES:.dvi=.pdftex)
COPY = if test -r $*.toc; then cp $*.toc $*.toc.bak; fi
#RM = /usr/bin/rm -f
RM = rm -f
all: pdf
pdf: clean pdftex
pdftex: $(PDFTEXFILES)
$(MAINTEXFILE) : $(SUBTEXFILES) $(BIBFILES)
%.pdftex: %.tex
echo "wir sind da"
$(COPY);$(PDFTEX) $<
egrep -c $(RERUNBIB) $*.log && ($(BIBTEX) $*;$(COPY);$(PDFTEX) $<) ; true
egrep $(RERUN) $*.log && ($(COPY);$(PDFTEX) $<) ; true
egrep $(RERUN) $*.log && ($(COPY);$(PDFTEX) $<) ; true
if cmp -s $*.toc $*.toc.bak; then . ;else $(PDFTEX) $< ; fi
$(RM) $*.toc.bak
# Display relevant warnings
egrep -i "(Reference|Citation).*undefined" $*.log ; true
# cleans anything that can be re-generated automatically, plus emacs backups
clean:
rm -f *.aux *.log *.bbl *.blg *.brf *.cb *.ind *.idx *.ilg \
*.inx *.toc *.out $(DVIFILES) $(PSFILES) main.pdf *~
.PHONY : all pdf ps dvi clean $(MAINTEXFILE)