.PHONY: naive-word-count #because there is a script with that name in the dir meditor-line-count: @echo Counting meditor Java lines... find /home/bsm/sideris/biomap/meditor/org/biomap/ -iname "*.java" | xargs --replace=xxx cat xxx | wc -l > meditor_line_count paper: meditor-line-count latex paper.tex bibtex paper latex paper.tex latex paper.tex dvips paper.dvi -o paper.ps paper-pdf: paper dvipdfm -o paper.pdf paper.dvi report: meditor-line-count latex report.tex bibtex report latex report.tex latex report.tex dvips report.dvi -o report.ps thesis: echo $(TEXINPUTS) ifeq ($(LABELS),1) @echo Rendering with labels... echo '\usepackage{showlabels} \renewcommand{\showlabelfont}{\small}' > labels.switch endif latex thesis.tex # bibtex thesis latex thesis.tex latex thesis.tex dvips -o thesis.ps thesis.dvi ifeq ($(LABELS),1) echo '' > labels.switch endif thesis-labels: $(MAKE) thesis LABELS=1 thesis-pdf: # pdflatex thesis.tex dvipdf thesis.dvi thesis.pdf report-pdf: report dvipdfm report.dvi report.pdf naive-word-count: @./naive-word-count word-count: thesis-pdf #@echo Tranfer report: `detex report.tex | wc -w` words #@echo Paper: `detex paper.tex | wc -w` words @echo Thesis word count: `pdftotext thesis.pdf - | wc -w` words clean: rm -rf *.dvi *.log *.aux *.toc *.bbl *.blg *~ *.ps *.pdf *.lof