################################################ # #Makefile para copilacao de tex # #Elias Mussi # ################################################ #NAO ESQUECER DE MUDAR O NOME DO PROJETO PROJETO=como-gerar-cdd data=`date --iso` clean: set -x rm -f *.log *.aux *.bbl *.blg *.dvi *.ps *.lot *.toc *.lof *.pdf *.idx *.ilg *.ind *.out cleanall: clean clean-backups # set -x clean-backups: @set -x ;\ find -type f | grep -v .svn |grep .backup |xargs rm ;\ find -type f | grep -v .svn |grep .~ |xargs rm ;\ find -type f | grep -v .svn |grep .bak |xargs rm ;\ ebb: @set -x ; \ cd imagens/ ; \ echo `pwd` ; \ rm *.bb ; \ ebb * ; \ cd - ;\ bibtex: tex @set -x ; \ bibtex $(PROJETO) ;\ tex: @set -x ; \ latex $(PROJETO) ; \ bibtex $(PROJETO) ; \ latex $(PROJETO) ; \ latex $(PROJETO) ;\ index: @set -x ; \ makeindex $(PROJETO).tex ;\ pdf: @set -x ; \ dvipdfm $(PROJETO) ;\ all: clean ebb index tex pdf @set -x ; \ tar: clean cd ../ ;\ tar -cvzf Mestrado-livro-$(data).tar.gz trunk ;\