################################################ # #Makefile para copilacao de tex # #Elias Mussi # ################################################ #NAO ESQUECER DE MUDAR O NOME DO PROJETO PROJETO=guialivre 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 -i rm {} ;\ find -type f | grep -v .svn |grep .~ |xargs -i rm {} ;\ find -type f | grep -v .svn |grep .bak |xargs -i rm {} ;\ clean-html: @set -x ;\ rm -f {*{4ct,4tc,aux,css,dvi,idv,lg,log,tmp,xref,html,png},.log} ebb: @set -x ; \ cd images/ ; \ 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 $(PROJETO)-$(data).tar.gz `pwd` ;\ tex4ht: htlatex $(PROJETO).tex "html,3,info" " -cunihtf -utf8"