################################################ # #Makefile para copilacao de tex # #Elias Mussi # ################################################ #NAO ESQUECER DE MUDAR O NOME DO PROJETO #PROJETO=cluster PROJETO=guiacluster data=`date --iso` clean: set -x rm -f *.log *.aux *.bbl *.blg *.dvi *.ps *.lot *.toc *.lof *.idx *.ilg *.ind *.out *.haux *.hbbl *.htoc cleanhtml: clean set -x ; \ rm -rf $(PROJETO).htoc $(PROJETO).haux $(PROJETO).hind $(PROJETO).hbbl $(PROJETO).css; \ rm -rf HTML/* cleanall: clean clean-backups # set -x rm -rf *.html $(PROJETO)*.html $(PROJETO)*.png *.4tc *.4ct *.lg *.xref 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 {} ;\ ebb: @set -x ; \ cd imagens/ ; \ echo `pwd` ; \ rm *.bb ; \ ebb * ; \ cd - ;\ bibtex: tex @set -x ; \ latex $(PROJETO) ; \ bibtex $(PROJETO) ;\ tex: ebb @set -x ; \ latex $(PROJETO) ; \ bibtex $(PROJETO) ; \ latex $(PROJETO) ; \ latex $(PROJETO) ;\ index: @set -x ; \ makeindex $(PROJETO).tex ;\ pdf: @set -x ; \ dvipdfm $(PROJETO) ;\ all: clean index tex pdf @set -x ; \ tar: clean cd ../ ;\ tar -cvzf Mestrado-livro-$(data).tar.gz trunk ;\ #htlatex cluster.tex "xhtml,docbook" " -cunihtf -utf8" #htlatex cluster.tex "xhtml,ooffice" "ooffice/! -cmozhtf" "-coo" "-cvalidate -utf8" latex2html: latex2html -dir /tmp/cluster-html -numbered_footnotes -no_footnode $(PROJETO).tex hevea: cleanhtml bibtex hevea -fix $(PROJETO).hva $(PROJETO).tex bibhva $(PROJETO) hevea -fix $(PROJETO).hva $(PROJETO).tex # hevea -fix $(PROJETO).hva $(PROJETO).tex cp -r imagens HTML/ hacha -tocter $(PROJETO).html mv *.html HTML/ mv *.gif HTML/ mv $(PROJETO).css HTML/ cp mussi.css HTML/