diff --git a/makefile b/makefile index efa93ed..e208c35 100644 --- a/makefile +++ b/makefile @@ -1,17 +1,17 @@ - +MASTER = thesis VERSION = v4.4 NAME = Max SURNAME = Mustermann all: clean - pdflatex thesis.tex - bibtex thesis - pdflatex thesis.tex - pdflatex thesis.tex + pdflatex ${MASTER}.tex + test -f ${MASTER}-blx.bib && ( bibtex ${MASTER}; pdflatex ${MASTER}.tex ) + pdflatex ${MASTER}.tex + ls -l ${MASTER}-blx.bib clean: - @rm -rf *run.xml *-blx.bib *.aux *.bbl *.blg *.brf *.log *.lof *.lot *.lol *.out *.tcp *.toc *.tps *.bak *.backup *.*~ - @for i in run.xml -blx.bib aux bbl blg brf log lof lot lol out tcp toc tps bak backup ; do find -name *.$$i -exec rm {} + ; done + @rm -rf *run.xml *-blx.bib *.aux *.bbl *.blg *.brf *.log *.lof *.lot *.lol *.out *.tcp *.toc *.tps *.bak *.backup *.pdfsync *.synctex.gz *.*~ + @for i in run.xml -blx.bib aux bbl blg brf log lof lot lol out tcp toc tps bak backup pdfsync synctex.gz; do find -name *.$$i -exec rm {} + ; done @find -name *.*~ -exec rm {} + cleanall: clean @@ -19,10 +19,10 @@ cleanall: clean bz2: clean @echo 'creating package including Docs' - @tar --exclude-vcs -cf `pwd`/../thesis-${NAME}_${SURNAME}-${VERSION}-`date +%Y%m%d`.tar `pwd`/../`pwd | sed "s,^\(.*/\)\?\([^/]*\),\2,"` - @bzip2 `pwd`/../thesis-${NAME}_${SURNAME}-${VERSION}-`date +%Y%m%d`.tar + @tar --exclude-vcs -cf `pwd`/../${MASTER}-${NAME}_${SURNAME}-${VERSION}-`date +%Y%m%d`.tar `pwd`/../`pwd | sed "s,^\(.*/\)\?\([^/]*\),\2,"` + @bzip2 `pwd`/../${MASTER}-${NAME}_${SURNAME}-${VERSION}-`date +%Y%m%d`.tar bz2-small: clean @echo 'creating package excluding Docs' - @tar --exclude-vcs --exclude=Docs -cf `pwd`/../thesis-${NAME}_${SURNAME}-${VERSION}-`date +%Y%m%d`_small.tar `pwd`/../`pwd | sed "s,^\(.*/\)\?\([^/]*\),\2,"` - @bzip2 `pwd`/../thesis-${NAME}_${SURNAME}-${VERSION}-`date +%Y%m%d`_small.tar + @tar --exclude-vcs --exclude=Docs -cf `pwd`/../${MASTER}-${NAME}_${SURNAME}-${VERSION}-`date +%Y%m%d`_small.tar `pwd`/../`pwd | sed "s,^\(.*/\)\?\([^/]*\),\2,"` + @bzip2 `pwd`/../${MASTER}-${NAME}_${SURNAME}-${VERSION}-`date +%Y%m%d`_small.tar